From 2ccf2eda4eea1aea8f33530aadcdf2a02c38d179 Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Mon, 1 May 2023 02:25:57 +0200 Subject: Add MRU domain --- host/Rory-nginx/configuration.nix | 1 + host/Rory-nginx/hosts/rory.gay/mru.nix | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100755 host/Rory-nginx/hosts/rory.gay/mru.nix 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'; + ''; + }; + }; +} -- cgit 1.4.1