From 75acf7e06ddeee2ac9d96a0218e36b9556a3a394 Mon Sep 17 00:00:00 2001 From: Anton de Groot Date: Wed, 18 Nov 2026 22:26:21 +0100 Subject: [PATCH] fix(nginx): include per-app routes so setup-pi.sh can't wipe other apps' routes --- nginx.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nginx.conf b/nginx.conf index df26204..f85ccb5 100644 --- a/nginx.conf +++ b/nginx.conf @@ -75,4 +75,9 @@ server { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto; } + + # Routes owned by other apps on this host, one file each, installed by that app's own deploy. + # They live outside this file so that setup-pi.sh, which copies this file over the Pi's, + # can never wipe them. A glob that matches nothing is fine. + include /etc/nginx/app-routes/*.conf; } \ No newline at end of file