From a8be3498bd2b177e1037944bcb5378eafb8ca668 Mon Sep 17 00:00:00 2001 From: Ivan Kirilov Dimitrov Date: Mon, 22 Jul 2024 21:01:50 +0200 Subject: [PATCH] autoindex pics --- mailserver/nginx/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mailserver/nginx/default.nix b/mailserver/nginx/default.nix index 4c12a92..4349f06 100644 --- a/mailserver/nginx/default.nix +++ b/mailserver/nginx/default.nix @@ -54,6 +54,12 @@ in enableACME = true; forceSSL = true; locations."/" = { + root = "/var/pic"; + extraConfig = '' + autoindex on; + ''; + }; + locations."/*.png" = { proxyPass = "http://127.0.0.1:8000"; }; };