From 730334c3dfbbafd569d6600c39e3e0b06b5d5d23 Mon Sep 17 00:00:00 2001 From: dtoro Date: Thu, 21 May 2026 23:50:22 +0200 Subject: [PATCH] photos: cut over to PhotoPrism stack on LXC 120, drop photos-new MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Mulimage 2.0 merged the PhotoPrism + Go sidecar + SvelteKit architecture into main and it now runs on LXC 120 (192.168.8.136). photos.hubris.network moves from the legacy "reverse_proxy :3000" passthrough to the same path-matchers pattern photos-new used: /api/v1/* + /static/* + /share/* → PhotoPrism (:2342), /api/sidecar/* → sidecar (:8000), catch-all → nginx-served SvelteKit static bundle (:3000, was Vite dev in M0). photos-new.hubris.network is removed entirely — LXC 127 is being decommissioned in the same cutover. Co-Authored-By: Claude Opus 4.7 (1M context) --- Caddyfile | 28 +++++++++------------------- 1 file changed, 9 insertions(+), 19 deletions(-) diff --git a/Caddyfile b/Caddyfile index ec4d5f7..bbacd27 100644 --- a/Caddyfile +++ b/Caddyfile @@ -144,33 +144,23 @@ blog.hubris.network { } photos.hubris.network { - tls { - dns ionos {env.IONOS_AUTH_API_TOKEN} - } - reverse_proxy 192.168.8.136:3000 -} - -photos-new.hubris.network { - # mule-image @new branch — PhotoPrism M0 test on LXC 127 (192.168.8.181) + # mule-image — PhotoPrism + Go sidecar + SvelteKit (post-Mulimage 2.0) tls { dns ionos {env.IONOS_AUTH_API_TOKEN} } encode zstd gzip - # PhotoPrism API + OIDC callback first (matched before Vite catch-all) + # PhotoPrism API + OIDC callback first (matched before static catch-all) @pp path /api/v1/* /api/v1 /static/* /share/* - reverse_proxy @pp 192.168.8.181:2342 - # PhotoPrism redirects to /library/browse after OIDC. Bounce - # back to the SvelteKit UI; mule-image is the only frontend. + reverse_proxy @pp 192.168.8.136:2342 + # PhotoPrism redirects to /library/browse after OIDC. Bounce back to + # the SvelteKit SPA; mule-image is the only user-facing frontend. redir /library / 302 redir /library/* / 302 - # Sidecar (mule-sidecar Go service) — keeps the /api/sidecar/ prefix + # mule-sidecar (Go) — keeps the /api/sidecar/ prefix @sc path /api/sidecar/* - reverse_proxy @sc 192.168.8.181:8000 - # Catch-all → Vite dev server. Host rewritten so the catch-all reaches Vite - # without tripping Vite allowedHosts. - reverse_proxy 192.168.8.181:5173 { - header_up Host localhost:5173 - } + reverse_proxy @sc 192.168.8.136:8000 + # Catch-all → nginx-on-120 serving the SvelteKit static bundle (no Vite in prod) + reverse_proxy 192.168.8.136:3000 } auth.hubris.network {