update nginx yaml
Some checks failed
Build NGINX on Ubuntu / build-and-push (push) Successful in 1m4s
Build NGINX on Ubuntu / deploy-to-kubernetes (push) Failing after 31s

This commit is contained in:
huangzhiqiang 2025-06-09 18:40:18 +08:00
parent b6db9817fc
commit 858c009a81

View File

@ -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;