52 Replies
What specific host are you wanting to change to a custom ip?
currently on unraid it uses my server ip but i need to assign a custom ip for nginx proxy manager.
What does "it" mean, I'm not sure I'm following. Did you deploy this with docker compose?
docker compose and env file according to the immich guide for unraid
To connect it to nginx proxy manager, I think you could add the nginx proxy mananger's docker network to immich and then use you just the service name + internal port. So npm would just be
http://immich-proxy:8080
ok i will search for a how to thanks
npm and immich are running on the same machine, right?
yes

This is what I'm using.
ok i will try it thanks
Any luck?
i have to search the point where to enter the code sniped im a self hosting beginner sorry 😄
Haha no worries. That goes in the docker-compose file.
So you should be able to go to the stack and hit "Edit Stack" somewhere.
i know i just starting the server
wont work
a few days ago i just added the web ip:port to nginx and the subdomain worked. then i struggled with nginx had to reinstall it since then i could not get the subdomain online with immich
for a custom domain to work you need two things setup correctly:
1. dns setup for the hostname to point at the right ip
2. service running on the right ip
wo to a break here my npm has weired behavier now all my subdomains wont work anymore but i changed nothing
sounds like a dns problem
i try to fix it over weekend and will write feedback here is there something interesting
its the fritzbox
where is dns setup for your domain and subdomains?
netcup
routed to duckdns > fritzbox
So it's a public domain?
y
the weired thing is sometimes the domains working sometimes not and i guess its a frotzbox related problem
Does it work from your phone on mobile data (not your local network)?
not local only external ip
the ok now it works internal
wtf
What ip did you setup the domain with a public ip or private ip?
i noticed that when i open ports i have to use the device name that the fixed ip saved in the fritz box is jupming around
thats why i start the npm with my custom ip and then i can port forward to that ip and not my device name
Does the device running npm have a static ip address? You can keep the same one after restarts or get a new one each time. If it's not the same then the port forwarding might be an issue when it restarts.
no its a fixed ip, the problem is that im not sure about this cacheing thing with dns do i have to delete my firefox cache or restart my pc when i work with subdomains and reverse proxy? i always try it but seems not to help
dns queries are cached so that can be a problem when troubleshooting sometimes.
sometimes this makes my troubleshooting as beginner really hard xD
Most systems have a way to clear dns cache though.
im using ubuntu 22.10
You aren't changing anything related to dns are you?
no
and sometimes i have a rebound error from my fritzbox
dns should point from domain to your public ip. Fritzbox should port forward to your fixed ip.
so it seems there is something in the routing from the router changes
You can test the domain by
nslookup immich.domain.com
and make sure it points to your public ip.ah tanks
You can test port forwarding by going off your local network and navigating to public ip:port or custom dns and it should go to the right internal ip.
im always checking the domains with my smartphone and disabled wifi
it shows me bad gateway what is good
Yeah. Is that working?
that means its routing to the npm
Cool
Do you see the same thing on local IP?
yes
So DNS is working, it's just npm is not sending it to the right place.
Did you add the network stuff to the immich-server docker compose file?
y to the bottom of the file
It needs to go in two different sections
oh xD
The first part can go anywhere
The part that says "immich-proxy" needs to added right under the "immich-proxy" section in the existing file
ah tanks
Or if you don't care. You can try ignoring all that stuff and setting the address in npm to the fixed IP of the server and port 2283.