Where do i have to put my external url
Hi guys,
it's been a while since I last used Immich.
I've just set up a new "server" and unfortunately fail to make Immich accessible from the internet with traefik2.
The documentation and Discord has not given me an answer yet 😦
Can someone help me on the hint?
Greetings,
Buddinski88
43 Replies
What have you tried, and what problems are you running in to?
On traefik2 the route is created correctly.
But when i try to access it i get a "404 page not found".
Take a look at this https://github.com/immich-app/immich/pull/2841#issuecomment-1597774536
This are the logs of immich-proxy:
"nginx: [emerg] host not found in upstream "immich-server:3001" in /etc/nginx/conf.d/default.conf:15
2023/06/22 20:21:58 [emerg] 1#1: host not found in upstream "immich-server:3001" in /etc/nginx/conf.d/default.conf:15
/docker-entrypoint.sh: Configuration complete; ready for start up
/docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
20-envsubst-on-templates.sh: Running envsubst on /etc/nginx/templates/default.conf.template to /etc/nginx/conf.d/default.conf
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
/docker-entrypoint.sh: Sourcing /docker-entrypoint.d/15-set-env-variables.envsh
10-listen-on-ipv6-by-default.sh: info: Enabled listen on IPv6 in /etc/nginx/conf.d/default.conf
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration"
I will check that! Thank you 🙂
Within the .env file i dont have to change some urls?
probably best to provide
1. All docker containers status
2. logs of server
no you don't need to change anything within
.env
beside UPLOAD_LOCATION
The status of all containers is running.

You can access locally, correct?
No i can't.
then it is not an issue with traefik but with your local setup, so posting your docker-compose and .env can help
Ah damn my daugther woke up -.-
I will get back to you later
dad's life 😛
You have hit it on the point. Could then also unfortunately no longer continue 🙂
I just started again with a new docker-compose.yaml and .env. Only made the changes that are necessary according to the documentation so that I can at least run it locally.
Unfortunately that doesn't work either.
In which way is it not working?
The only problem I can -maybe- find in the logs is that it seems like immich_proxy is looping, but there's no errors or anything
The current issue is that i cant access the web application.
When i have look at portainer it shows me, that after a few seconds? the published port 2283 disapears.
Even i can see it and try to access the webapplication i got a error, that the side can not be loaded.
Is there thought why the proxy is looping?
I have no idea tbh
Does portainer show any errors on the container?
Unfortunately portainer show no errors "all immich containers are running".
When portainer stops publishing the port it looks like to immich_proxy do not have ip address:

If you go into the detailed view of the container, does that say anything interesting?
Aha
host not found in upstream "immich:3000"
I feel like that wasn't in there earlier 🤔
From your .env:
IMMICH_WEB_URL=http://immich:3000
Did you edit that line?
You should leave it at the defaultDuring my test i have changed that, yes, but now its original again 🙂

It should be immich-web not immich
Ups
If thats the issue than SHAME ON ME!

Thank you very much @bo0tzz
😁
Im such an idiot ^^
Ok, then lets move to the tricky stuff... move the upload folder to my nas, use traefik2 as a proxy
You're not the only one who's done this. It's partly on us for leaving those in the default .env
Hehe, thats totally my fault 🙂
I should not change anything about im not sure what it is used for
So move the upload folder to my nas was successful.
So it nearly works. But i think in my traffic config something is not correct.
I can go to login page, but and enter my credentials, but after a few seconds the message "Error unable to connect" appears.
Here the log from the chrome developer console.
And here my docker-compose and .env file.
Any ideas?
And you can login using local IP?
No thats not possible because the immich_proxy is commented out
I recommend keeping immich_proxy and just pointing traefik at that
A lot less room for error that way
So i should point traefik to the port 2283?
It uses a different port internally I think, but whichever one that is
I definitly should have more knowledge about traefik
With the proxy active i can connect internally.
But as is sad with the traefik it is not possible right now.
I will try if i can find a solution.
Pointing traefik directly to the proxy fixed it!
Thank you for all you help, @Alex and @bo0tzz 🙂