arter97 / immich-native

Immich hosted without Docker
74 stars 7 forks source link

How to change listen IP or port #7

Closed tgutzler closed 4 months ago

tgutzler commented 5 months ago

Hi, Great work getting this project up. Following the instructions I only found one thing missing. You never apt install build-essentials, which leads to a build error half way through install.sh.

Once built, I tried to change the listen address by defining IMMICH_HOST=1.2.3.4 in the env file and restarting the immich service. I can see in the log file that the service restarts but it keeps only listening to 127.0.0.1. Same thing for IMMICH_PORT. What am I missing?

arter97 commented 4 months ago

Sorry for the late reply.

I believe IMMICH_HOST is a Docker-specific configuration, which is why it's ignored in this native version. See install.sh's "Use 127.0.0.1" part and try manually changing them.

And thanks for the build-essentials dep.

tgutzler commented 4 months ago

Thanks @arter97, I was able to open the listening port by modifying app/dist/main.js