diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-05-01 16:41:22 +0200 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-05-01 16:41:22 +0200 |
commit | d0c9b6e5f42440f86be284f4e99592d0627fb508 (patch) | |
tree | 8292648dd2fb37a71ad56760f6d539359dd9f11b | |
parent | Always serve index.html by default (diff) | |
download | Rory-Open-Architecture-d0c9b6e5f42440f86be284f4e99592d0627fb508.tar.xz |
Always serve index.html by default
-rwxr-xr-x | host/Rory-nginx/hosts/rory.gay/matrix.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/host/Rory-nginx/hosts/rory.gay/matrix.nix b/host/Rory-nginx/hosts/rory.gay/matrix.nix index 56f769b..1bc038e 100755 --- a/host/Rory-nginx/hosts/rory.gay/matrix.nix +++ b/host/Rory-nginx/hosts/rory.gay/matrix.nix @@ -19,7 +19,8 @@ add_header 'Content-Length' 0; return 204; } - try_files $uri $uri/ /index.html; + # default to /index.html if file not found + try_files $uri $uri/ index.html; ''; }; locations."/_synapse/client".proxyPass = "http://192.168.1.5:8008"; |