diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-05-01 02:25:57 +0200 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-05-01 02:25:57 +0200 |
commit | 2ccf2eda4eea1aea8f33530aadcdf2a02c38d179 (patch) | |
tree | de5b2e3f84ef19ced8b8ca09aa1573c0b3c8b6a1 | |
parent | fix shit (diff) | |
download | Rory-Open-Architecture-2ccf2eda4eea1aea8f33530aadcdf2a02c38d179.tar.xz |
Add MRU domain
-rwxr-xr-x | host/Rory-nginx/configuration.nix | 1 | ||||
-rwxr-xr-x | host/Rory-nginx/hosts/rory.gay/mru.nix | 16 |
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'; + ''; + }; + }; +} |