From d0c9b6e5f42440f86be284f4e99592d0627fb508 Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Mon, 1 May 2023 16:41:22 +0200 Subject: Always serve index.html by default --- host/Rory-nginx/hosts/rory.gay/matrix.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"; -- cgit 1.4.1