diff options
Diffstat (limited to 'host/Rory-nginx')
-rwxr-xr-x | host/Rory-nginx/services/nginx/nginx.nix | 1 | ||||
-rwxr-xr-x | host/Rory-nginx/services/nginx/rory.gay/cgit.nix | 13 |
2 files changed, 14 insertions, 0 deletions
diff --git a/host/Rory-nginx/services/nginx/nginx.nix b/host/Rory-nginx/services/nginx/nginx.nix index 6ce4a51..b80c01b 100755 --- a/host/Rory-nginx/services/nginx/nginx.nix +++ b/host/Rory-nginx/services/nginx/nginx.nix @@ -44,6 +44,7 @@ "rory.boo" = import ./rory.gay/root.nix; "lfs.rory.gay" = import ./rory.gay/lfs.nix; "git.rory.gay" = import ./rory.gay/git.nix; + "cgit.rory.gay" = import ./rory.gay/cgit.nix; "tunnel.rory.boo" = import ./rory.boo/tunnel.nix; "boorunav.com" = import ./boorunav.com/root.nix; "catgirlsaresexy.com" = import ./catgirlsaresexy.com/root.nix; diff --git a/host/Rory-nginx/services/nginx/rory.gay/cgit.nix b/host/Rory-nginx/services/nginx/rory.gay/cgit.nix new file mode 100755 index 0000000..812e946 --- /dev/null +++ b/host/Rory-nginx/services/nginx/rory.gay/cgit.nix @@ -0,0 +1,13 @@ +{ + root = "/data/nginx/html_git"; + enableACME = true; + addSSL = true; + extraConfig = '' + autoindex on; + more_set_headers 'Access-Control-Allow-Origin: *'; + more_set_headers 'Access-Control-Allow-Methods: GET, POST, OPTIONS'; + more_set_headers 'Access-Control-Allow-Headers: DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range'; + more_set_headers 'Access-Control-Expose-Headers: Content-Length,Content-Range'; + more_set_headers 'Access-Control-Allow-Credentials: true'; + ''; +} |