mirror of
https://github.com/bitwarden/server.git
synced 2025-04-05 13:08:17 -05:00
Move nginx.pid to directory with write permission (#350)
* Moving nginx.pid in /var/run/nginx /var/run/nginx is owned by our application user, allowing it to delete nginx.pid * Update nginx.pid filepath
This commit is contained in:
parent
477d665104
commit
f0ca4450d7
@ -35,8 +35,9 @@ mkdir -p /etc/letsencrypt
|
||||
chown -R $USERNAME:$GROUPNAME /etc/letsencrypt
|
||||
mkdir -p /etc/ssl
|
||||
chown -R $USERNAME:$GROUPNAME /etc/ssl
|
||||
touch /var/run/nginx.pid
|
||||
chown -R $USERNAME:$GROUPNAME /var/run/nginx.pid
|
||||
mkdir -p /var/run/nginx
|
||||
touch /var/run/nginx/nginx.pid
|
||||
chown -R $USERNAME:$GROUPNAME /var/run/nginx
|
||||
chown -R $USERNAME:$GROUPNAME /var/cache/nginx
|
||||
chown -R $USERNAME:$GROUPNAME /var/log/nginx
|
||||
|
||||
|
@ -27,7 +27,7 @@ events {
|
||||
# Default error log file
|
||||
# (this is only used when you don't override error_log on a server{} level)
|
||||
error_log /var/log/nginx/error.log warn;
|
||||
pid /var/run/nginx.pid;
|
||||
pid /var/run/nginx/nginx.pid;
|
||||
|
||||
http {
|
||||
include proxy.conf;
|
||||
|
Loading…
x
Reference in New Issue
Block a user