update nginx yaml
This commit is contained in:
parent
b6db9817fc
commit
858c009a81
@ -20,10 +20,12 @@ metadata:
|
||||
namespace: default
|
||||
data:
|
||||
nginx.conf: |
|
||||
user nginx;
|
||||
# 由于以非root用户运行,user指令会被忽略,可以移除
|
||||
# user nginx;
|
||||
worker_processes auto;
|
||||
|
||||
error_log /var/log/nginx/error.log notice;
|
||||
# 修改日志路径为我们已经挂载的目录
|
||||
error_log /usr/local/nginx/logs/error.log notice;
|
||||
pid /var/run/nginx.pid;
|
||||
|
||||
events {
|
||||
@ -38,7 +40,8 @@ data:
|
||||
'$status $body_bytes_sent "$http_referer" '
|
||||
'"$http_user_agent" "$http_x_forwarded_for"';
|
||||
|
||||
access_log /var/log/nginx/access.log main;
|
||||
# 修改访问日志路径
|
||||
access_log /usr/local/nginx/logs/access.log main;
|
||||
|
||||
sendfile on;
|
||||
keepalive_timeout 65;
|
||||
|
Loading…
x
Reference in New Issue
Block a user