From 287b7e5c953caad2e78097c63cd7be99c4177c4a Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Thu, 12 Jun 2025 15:24:31 +0200 Subject: [PATCH] Add public html files to tent --- m/tent/nginx.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/m/tent/nginx.nix b/m/tent/nginx.nix index f67a5255..bf739959 100644 --- a/m/tent/nginx.nix +++ b/m/tent/nginx.nix @@ -48,6 +48,12 @@ in proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } + location ~ ^/~(.+?)(/.*)?$ { + alias /vault/home/$1/public_html$2; + index index.html index.htm; + autoindex on; + absolute_redirect off; + } ''; }; };