Immich works, but only in single browser
Hi, I created my immich containers, and populated library with everything. Everything worked until I tried to access immich from remote host, my phone on data.
I am using external nginx reverse proxy. It registers this request when this bug happens:
GET /auth/login/__data.json?x-sveltekit-invalidated=1
(long version)
basically, I get redirected to immich.domain.com/auth/login
, but the page is all black.
Same thing happens in Google Chrome, Edge, and in Chromium incognito.
My mobile app works, from remote IP(data) too, and my Chromium browser works too
I used Chromium for all the configurations and triage and stuff.
I have -I think- all the proxy headers set as it was in the immich repo
My guess is this may be about cookies? Idk
I deleted all immich cookies from Chromium and it still works no problem.
I switched a profile in Chromium, it does NOT work.
I uploaded my proxy config, and my compose.
Here are all immich-web container logs
Do you have ideas? Is it related to headers maybe? Some of them are enforced by other applications behind my reverse proxy.6 Replies
Hmm for some reason I cannot upload my docker compose file
I cannot access you subdomain conf either.
pastebin it is then
Pastebin
proxy conf - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin
docker compose - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
you are using a custom /api path?
This is probably wrong, and it doesn't line up with the value in your nginx config:
Also not sure if you upstream app variables will work the way you think they will. There are some documented issues with them:
https://discord.com/channels/979116623879368755/1061797416522756176/1061813371344793650
I added PUBLIC_IMMICH_SERVER_URL because I was out of options. I had it without that variable and it was the same situation
since it said "PUBLIC" I figured it is URL that is seen "from outside", not the docker host.
To be clear, I assigned this value from my nginx config:
server_name immich.domain.com;
I have used some apps, that required a variable like that eg. your-spotify
This should be clarified in documentation
Yes, it was breaking my balls for a whole day, finally I figured, that those variables must be before rewrite command. Otherwise nothing works.
The same thing must have happened to the guy you mentioned
OMG this is it, excuse me for my rant. I shall address it to someone responsible for documentation.
Apparently PUBLIC_IMMICH_SERVER_URL does not make any difference whether it is set or not.
the ~ (/immich-web)?
condition was totally ruining it
Tank you a whole lot. Everything now works as intended