I
Immich2y ago
ahaw

Issue with reverse proxy.

I wanted to configure immich using traefik reverse proxy on example.com/immich/ path. But it seems that it doesnt work correctly. Is it possible to set subdirectory path like for example in photoprism (PHOTOPRISM_SITE_URL) or bitwarden (DOMAIN)? For now I can access specific files but pathes in html and redirects are ignoring /immich/. I tried to change base href but without success. Svelte seems to ignore it My current config looks like this: labels: - "traefik.enable=true" - "traefik.http.routers.immich-proxy.rule=PathPrefix(/immich)" - "traefik.http.middlewares.immich-proxy.stripprefix.prefixes=/immich" - "traefik.http.routers.immich-proxy.middlewares=immich-proxy" - "traefik.http.middlewares.immich-proxy.stripprefix.forceslash=true" - traefik.http.routers.immich-proxy.entrypoints=websecure - traefik.http.routers.immich-proxy.tls=true - "traefik.http.services.immich-proxy.loadbalancer.server.port=8080"
7 Replies
jrasm91
jrasm912y ago
Sub path doesn't work right now with the web app Better to just use a subdomain if you can. https://github.com/immich-app/immich/discussions/1679
ahaw
ahawOP2y ago
I would rather not. Im hosting few services and I dont want to deal with certificates and i would prefer to keep them not visible on dns
jrasm91
jrasm912y ago
I think it can almost work, but some issues with sveltekit and inter-app page links don't support/work with a base url yet, so as of now it isn't compatible with that type of deployment.
ahaw
ahawOP2y ago
inter app links should not be a problem. Ive managed to handle it (hardcoded for now). But a svelte is a problem. I have one more idea but it would require rewriting html on proxy and appending base to all links with _app
jrasm91
jrasm912y ago
How did you handle inter-app links? It uses svelte's goto for client-side routing?
ahaw
ahawOP2y ago
I didnt edit goto, yet. I havent been able to login yet. I changed AppRoutes
jrasm91
jrasm912y ago
Oh gotcha

Did you find this page helpful?