#Set custom IP

1 messages · Page 1 of 1 (latest)

exotic lark
#

Is there a way to change the IP from host to custom IP?

primal bolt
#

What specific host are you wanting to change to a custom ip?

exotic lark
#

currently on unraid it uses my server ip but i need to assign a custom ip for nginx proxy manager.

primal bolt
#

What does "it" mean, I'm not sure I'm following. Did you deploy this with docker compose?

exotic lark
#

docker compose and env file according to the immich guide for unraid

primal bolt
#

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

exotic lark
#

ok i will search for a how to thanks

primal bolt
#

npm and immich are running on the same machine, right?

exotic lark
#

yes

primal bolt
#
networks:
  nginxproxymanager_default:
      external: true

...
services:
  ...
  immich-proxy:
    networks:
        - nginxproxymanager_default
#

This is what I'm using.

exotic lark
#

ok i will try it thanks

primal bolt
#

Any luck?

exotic lark
#

i have to search the point where to enter the code sniped im a self hosting beginner sorry 😄

primal bolt
#

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.

exotic lark
#

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

primal bolt
#

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
exotic lark
#

wo to a break here my npm has weired behavier now all my subdomains wont work anymore but i changed nothing

primal bolt
#

sounds like a dns problem

exotic lark
#

i try to fix it over weekend and will write feedback here is there something interesting

#

its the fritzbox

primal bolt
#

where is dns setup for your domain and subdomains?

exotic lark
#

netcup

#

routed to duckdns > fritzbox

primal bolt
#

So it's a public domain?

exotic lark
#

y

#

the weired thing is sometimes the domains working sometimes not and i guess its a frotzbox related problem

primal bolt
#

Does it work from your phone on mobile data (not your local network)?

exotic lark
#

not local only external ip

#

the ok now it works internal

#

wtf

primal bolt
#

What ip did you setup the domain with a public ip or private ip?

exotic lark
#

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

primal bolt
#

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.

exotic lark
#

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

primal bolt
#

dns queries are cached so that can be a problem when troubleshooting sometimes.

exotic lark
#

sometimes this makes my troubleshooting as beginner really hard xD

primal bolt
#

Most systems have a way to clear dns cache though.

exotic lark
#

im using ubuntu 22.10

primal bolt
#

You aren't changing anything related to dns are you?

exotic lark
#

no

#

and sometimes i have a rebound error from my fritzbox

primal bolt
#

dns should point from domain to your public ip. Fritzbox should port forward to your fixed ip.

exotic lark
#

so it seems there is something in the routing from the router changes

primal bolt
#

You can test the domain by nslookup immich.domain.com and make sure it points to your public ip.

exotic lark
#

ah tanks

primal bolt
#

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.

exotic lark
#

im always checking the domains with my smartphone and disabled wifi

#

it shows me bad gateway what is good

primal bolt
#

Yeah. Is that working?

exotic lark
#

that means its routing to the npm

primal bolt
#

Cool

#

Do you see the same thing on local IP?

exotic lark
#

yes

primal bolt
#

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?

exotic lark
#

y to the bottom of the file

primal bolt
#

It needs to go in two different sections

exotic lark
#

oh xD

primal bolt
#

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

exotic lark
#

ah tanks