From 84b21656c47b8c7f3bbd5b685bb8269c8273eb12 Mon Sep 17 00:00:00 2001 From: Michael Housh Date: Fri, 21 Mar 2025 14:51:46 -0400 Subject: [PATCH] feat: Test public photo proxy on same domain as immich. --- config/Caddyfile | 37 ++++++++++++++++++++++++++++--------- 1 file changed, 28 insertions(+), 9 deletions(-) diff --git a/config/Caddyfile b/config/Caddyfile index ce40f85..8801372 100644 --- a/config/Caddyfile +++ b/config/Caddyfile @@ -2,6 +2,25 @@ email {env.ACME_EMAIL} } +https://photos.housh.com { + tls { + dns cloudflare {env.CF_AUTH_TOKEN} + resolvers 1.1.1.1 + } + + # Immich Public Proxy path + @public path /share /share/* + handle @public { + reverse_proxy http://frankenmini.housh.dev:3000 + } + + # All other paths for photos. + handle { + reverse_proxy http://frankenmini.housh.dev:2283 + } + +} + *.housh.dev { tls { dns cloudflare {env.CF_AUTH_TOKEN} @@ -43,15 +62,15 @@ reverse_proxy uptime_kuma:3001 } - @immich host photos.housh.dev - handle @immich { - reverse_proxy http://frankenmini.housh.dev:2283 - } - - @immichpublicproxy host photo-proxy.housh.dev - handle @immichpublicproxy { - reverse_proxy http://frankenmini.housh.dev:3000 - } +# @immich host photos.housh.dev +# handle @immich { +# reverse_proxy http://frankenmini.housh.dev:2283 +# } +# +# @immichpublicproxy host photo-proxy.housh.dev +# handle @immichpublicproxy { +# reverse_proxy http://frankenmini.housh.dev:3000 +# } @snapp host s.housh.dev handle @snapp {