From 67d6c1b6e68550ae973cbe552f471683f89a4657 Mon Sep 17 00:00:00 2001 From: mikl Date: Tue, 28 Jul 2026 13:20:04 +0300 Subject: [PATCH] heather/caddy: revert /files rewrite, add nix.iscg.dev file explorer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - /files/* back to plain file_server (v2RayTun.zip stays at iscg.dev/files/) - nix.iscg.dev: file_server browse (directory listing) from /var/www/nix - DNS nix.iscg.dev A → 51.250.45.111 added via yc dns --- hosts/heather/caddy.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hosts/heather/caddy.nix b/hosts/heather/caddy.nix index 99f02ba..948e9ac 100644 --- a/hosts/heather/caddy.nix +++ b/hosts/heather/caddy.nix @@ -114,6 +114,14 @@ in { "pi.iscg.dev".extraConfig = piBasicAuth + '' reverse_proxy 127.0.0.1:30141 ''; + + # File explorer (directory listing) для раздачи файлов через браузер. + # browse включает Caddy's built-in directory listing. Корень /var/www/nix. + # Без auth — класть только публичные файлы. + "nix.iscg.dev".extraConfig = '' + root * /var/www/nix + file_server browse + ''; }; }; }