From e3edd761b3332b9e1dd637f00af4502c794c91be Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Sat, 7 Oct 2023 22:22:36 +0200 Subject: Add cgit nginx --- host/Rory-nginx/services/nginx/nginx.nix | 1 + host/Rory-nginx/services/nginx/rory.gay/cgit.nix | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100755 host/Rory-nginx/services/nginx/rory.gay/cgit.nix (limited to 'host') 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'; + ''; +} -- cgit 1.4.1