Files
common-server-public/nginx/nginx.conf
张威33321 fb87be680d 0908
2026-09-08 20:36:17 +08:00

35 lines
944 B
Nginx Configuration File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log notice;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
include /etc/nginx/conf.d/*.conf;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
# HTTPS server 块按需加载:
# 该目录默认为空nginx 的 wildcard include 匹配 0 个文件时不报错),
# 证书申请成功后由 enable-ssl.sh 写入配置,从而避免冷启动时
# 因证书文件不存在导致 nginx 拒绝启动。
include /etc/nginx/ssl.d/*.conf;
}