diff --git a/hosts/heather/caddy.nix b/hosts/heather/caddy.nix index bb0afc8..74d7e96 100644 --- a/hosts/heather/caddy.nix +++ b/hosts/heather/caddy.nix @@ -136,10 +136,10 @@ Allow: /" 200 # browse включает Caddy's built-in directory listing. Корень /var/www/pub. # Без auth — класть только публичные файлы. "files.iscg.dev".extraConfig = '' - handle /help2travel/api/* { - reverse_proxy 127.0.0.1:8791 { - header_up X-Client-IP {remote_host} - } + # Retired preview: landing and API live only on help2travel.ru. + @help2travel_preview path /help2travel /help2travel/* + handle @help2travel_preview { + respond 404 } handle { root * /var/www/pub @@ -161,7 +161,7 @@ Allow: /" 200 } } handle { - root * /var/www/pub/help2travel + root * /var/www/help2travel file_server } '';