summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xhost/Rory-nginx/configuration.nix1
-rwxr-xr-xhost/Rory-nginx/hosts/rory.gay/mru.nix16
2 files changed, 17 insertions, 0 deletions
diff --git a/host/Rory-nginx/configuration.nix b/host/Rory-nginx/configuration.nix
index a1e912d..31a0806 100755
--- a/host/Rory-nginx/configuration.nix
+++ b/host/Rory-nginx/configuration.nix
@@ -43,6 +43,7 @@
         "lfs.rory.gay" = import ./hosts/rory.gay/lfs.nix;
         "git.rory.gay" = import ./hosts/rory.gay/git.nix;
         "matrix.rory.gay" = import ./hosts/rory.gay/matrix.nix;
+        "mru.rory.gay" = import ./hosts/rory.gay/mru.nix;
         "tunnel.rory.boo" = import ./hosts/rory.boo/tunnel.nix;
         "boorunav.com" = import ./hosts/boorunav.com/root.nix;
         "catgirlsaresexy.com" = import ./hosts/catgirlsaresexy.com/root.nix;
diff --git a/host/Rory-nginx/hosts/rory.gay/mru.nix b/host/Rory-nginx/hosts/rory.gay/mru.nix
new file mode 100755
index 0000000..9b30df4
--- /dev/null
+++ b/host/Rory-nginx/hosts/rory.gay/mru.nix
@@ -0,0 +1,16 @@
+{
+  enableACME = true;
+  addSSL = true;
+  root = "/data/nginx/mru";
+  locations = {
+    "/" = {
+      index = "index.html";
+      extraConfig = ''
+        add_header 'Access-Control-Allow-Origin' '*';
+        add_header 'Access-Control-Allow-Methods' 'GET, 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';
+      '';
+    };
+  };
+}