[Feature]: running proxy (nginx) as a non-root user #652

Closed
opened 2026-02-04 21:43:05 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @MichaelBui on GitHub (Feb 3, 2023).

Feature detail

Expectation:
To be able to run the whole system as a non-root user so that the user's dir can be shared with other apps (e.g: via data sync, symlink,...)

Current situation:
This line (nginx/start.sh#L15) will fail if running the proxy container as a non-root user:

envsubst '$IMMICH_WEB_SCHEME $IMMICH_WEB_HOST  $IMMICH_SERVER_SCHEME $IMMICH_SERVER_HOST' < /etc/nginx/nginx.conf.template > /etc/nginx/nginx.conf

Other solutions are also welcome & appreciated!

Platform

Server

Originally created by @MichaelBui on GitHub (Feb 3, 2023). ### Feature detail **Expectation:** To be able to run the whole system as a non-root user so that the user's dir can be shared with other apps (e.g: via data sync, symlink,...) **Current situation:** This line ([nginx/start.sh#L15](https://github.com/immich-app/immich/blob/main/nginx/start.sh#L15)) will fail if running the proxy container as a non-root user: ``` envsubst '$IMMICH_WEB_SCHEME $IMMICH_WEB_HOST $IMMICH_SERVER_SCHEME $IMMICH_SERVER_HOST' < /etc/nginx/nginx.conf.template > /etc/nginx/nginx.conf ``` Other solutions are also welcome & appreciated! ### Platform Server
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#652