summary refs log tree commit diff
path: root/host
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-05-01 16:41:22 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-05-01 16:41:22 +0200
commitd0c9b6e5f42440f86be284f4e99592d0627fb508 (patch)
tree8292648dd2fb37a71ad56760f6d539359dd9f11b /host
parentAlways serve index.html by default (diff)
downloadRory-Open-Architecture-d0c9b6e5f42440f86be284f4e99592d0627fb508.tar.xz
Always serve index.html by default
Diffstat (limited to 'host')
-rwxr-xr-xhost/Rory-nginx/hosts/rory.gay/matrix.nix3
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";