sq66 commited on
Commit
37ce4b7
·
verified ·
1 Parent(s): bda8096

Update nginx.conf

Browse files
Files changed (1) hide show
  1. nginx.conf +7 -3
nginx.conf CHANGED
@@ -1,6 +1,10 @@
1
- # 定义 Nginx 全局配置
2
- # user nginx; # 通常不需要在非 root 容器中指定,可以注释掉或删除
3
- # worker_processes auto; # 可以根据需要调整
 
 
 
 
4
 
5
  # events 块定义连接处理模型
6
  events {
 
1
+ # 定义 Nginx 运行的用户和用户组 (如果需要,通常基础镜像会处理)
2
+ # user nginx;
3
+ # worker_processes auto; # 让 Nginx 自动决定工作进程数
4
+ # 指定 PID 文件路径到 /tmp 目录下,那里通常有写入权限
5
+ pid /tmp/nginx.pid;
6
+ # 错误日志路径 (可以保持默认或按需修改)
7
+ # error_log /var/log/nginx/error.log warn;
8
 
9
  # events 块定义连接处理模型
10
  events {