[GH-ISSUE #23] nging.conf user command with enviroment variable PUID #12

Open
opened 2026-02-27 14:58:06 +03:00 by kerem · 0 comments
Owner

Originally created by @pucherot on GitHub (Oct 15, 2023).
Original GitHub issue: https://github.com/NginxProxyManager/docker-nginx-full/issues/23

When running npm with a custom user:

enviroment:
  - PUID=1000
  - PGID=1000

Warn occur when processing the nginx.conf file, and this warn is logged at fallback_error.log:

2023/10/02 19:47:29 [warn] 158#158: the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:4

I think it would be a better solution to not include the user command in nginx.conf if you have defined the PUID environment variable.

Originally created by @pucherot on GitHub (Oct 15, 2023). Original GitHub issue: https://github.com/NginxProxyManager/docker-nginx-full/issues/23 When running npm with a custom user: ``` enviroment: - PUID=1000 - PGID=1000 ``` Warn occur when processing the `nginx.conf` file, and this warn is logged at `fallback_error.log`: ``` 2023/10/02 19:47:29 [warn] 158#158: the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:4 ``` I think it would be a better solution to not include the `user` command in `nginx.conf` if you have defined the `PUID` environment variable.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/docker-nginx-full#12
No description provided.