From 0f45d7619a3b9cf38a065d171e5b342d7b611fed Mon Sep 17 00:00:00 2001 From: Jose Henrique Date: Fri, 18 Sep 2026 08:13:25 -0300 Subject: [PATCH] Redirect file nginx index to directory browser --- apps/infra/file-nginx.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/infra/file-nginx.yaml b/apps/infra/file-nginx.yaml index 7311b75..94a8f9e 100644 --- a/apps/infra/file-nginx.yaml +++ b/apps/infra/file-nginx.yaml @@ -20,7 +20,7 @@ spec: labels: app: file-nginx annotations: - checksum/file-nginx-conf: "03f20da7304eb251b0c382fcfb0d76203945324404034b71f17539cd863e7139" + checksum/file-nginx-conf: "4235705a54e5003a340f1a4e164c3e3239fd4327d9aa9ecf0c640a3655def3c9" spec: containers: - name: nginx @@ -90,6 +90,11 @@ data: autoindex_exact_size off; autoindex_localtime on; + location = /index.html { + # The legacy static page is now the live directory browser. + return 302 /; + } + location / { # Bypass the static welcome page so every directory is browsable. index __directory_listing__;