Update nginx.conf

This commit is contained in:
rad168
2025-01-31 11:52:10 +08:00
committed by GitHub
parent 4ea22469ed
commit af43f4cf52

View File

@@ -31,6 +31,9 @@ http {
##
# 日志设置
##
set_real_ip_from 0.0.0.0/0; # 允许所有代理传递真实 IP
real_ip_header X-Forwarded-For;
real_ip_recursive on;
log_format custom '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';