docker-nginx-full icon indicating copy to clipboard operation
docker-nginx-full copied to clipboard

nging.conf user command with enviroment variable PUID

Open pucherot opened this issue 2 years ago • 0 comments

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.

pucherot avatar Oct 15 '23 06:10 pucherot