From 4feeff978c2bb0fbdca349721a248d8bc643dc82 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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Aleix Boné Reviewed-by: Aleix Roca Nonell --- 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; + } ''; }; };