Replies: 3 comments 1 reply
-
We call listen on the *PORT environment variable. It looks like you can pass a string which I think would make it only listen to 127.0.0.1:3001. We might need to change validation for the environment variable though. |
Beta Was this translation helpful? Give feedback.
-
Setting the PORT env var to 127.0.0.1 (:3001 for web, and :3002 for microservices), the logs shows it should be listening on 127.0.0.1 only
Yet, it's still listening on 0.0.0.0 (as reported by netstat) |
Beta Was this translation helpful? Give feedback.
-
It looks like the problem is here : https://github.com/immich-app/immich/blob/main/server/src/immich/main.ts#L34C1-L34C41 const server = await app.listen(port, '127.0.0.1'); |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi.
I'm running Immich on a Nomad cluster, exposed by Traefik through the Consul service mesh (anyone interested can have a look at https://git.lapiole.org/nomad/immich but it's a gomplate job template which I render with some custom scripts, so it won't be usable as is easily). Anyway, in this configuration, all the security relies on services binding exclusively on 127.0.0.1. It seems the server and the microservices are both listening on 0.0.0.0. Is there an option (or env var) to set to make them bind on 127.0.0.1 ?
Regards,
Daniel
Beta Was this translation helpful? Give feedback.
All reactions