summary refs log tree commit diff
path: root/host/Rory-nginx/services/nginx/rory.gay/cgit.nix
diff options
context:
space:
mode:
Diffstat (limited to 'host/Rory-nginx/services/nginx/rory.gay/cgit.nix')
-rwxr-xr-xhost/Rory-nginx/services/nginx/rory.gay/cgit.nix13
1 files changed, 13 insertions, 0 deletions
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';
+  '';
+}