diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-10-07 22:22:36 +0200 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-10-07 22:22:36 +0200 |
commit | e3edd761b3332b9e1dd637f00af4502c794c91be (patch) | |
tree | a64af878c3eb7ed026d99103f790fea46c29f5bc /host | |
parent | Add cgit (diff) | |
download | Rory-Open-Architecture-e3edd761b3332b9e1dd637f00af4502c794c91be.tar.xz |
Add cgit nginx
Diffstat (limited to 'host')
-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'; + ''; +} |