summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xhost/Rory-nginx/hosts/rory.gay/git.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/host/Rory-nginx/hosts/rory.gay/git.nix b/host/Rory-nginx/hosts/rory.gay/git.nix
index 56954e4..37931a1 100755
--- a/host/Rory-nginx/hosts/rory.gay/git.nix
+++ b/host/Rory-nginx/hosts/rory.gay/git.nix
@@ -3,5 +3,11 @@
   enableACME = true;
   addSSL = true;
   extraConfig = ''
-    autoindex on;'';
+    autoindex on;
+    add_header 'Access-Control-Allow-Origin' '*';
+    add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
+    add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
+    add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
+    add_header 'Access-Control-Allow-Credentials' 'true';
+  '';
 }