fix: use /tmp/nginx.pid to avoid permission denied errors (#877)
Set pid directive to /tmp/nginx.pid in nginx.conf and nginx.local.conf to prevent permission denied errors when running nginx as a non-root user. Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
parent
0533933d17
commit
007776c1b1
|
|
@ -1,7 +1,7 @@
|
||||||
events {
|
events {
|
||||||
worker_connections 1024;
|
worker_connections 1024;
|
||||||
}
|
}
|
||||||
|
pid /tmp/nginx.pid;
|
||||||
http {
|
http {
|
||||||
# Basic settings
|
# Basic settings
|
||||||
sendfile on;
|
sendfile on;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
events {
|
events {
|
||||||
worker_connections 1024;
|
worker_connections 1024;
|
||||||
}
|
}
|
||||||
|
pid /tmp/nginx.pid;
|
||||||
http {
|
http {
|
||||||
# Basic settings
|
# Basic settings
|
||||||
sendfile on;
|
sendfile on;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue