add blockip.conf
All checks were successful
Nginx / build (push) Successful in 33s

This commit is contained in:
lychang
2025-10-04 02:25:32 +08:00
parent f66cfce4bc
commit ea88409adc

View File

@@ -2,13 +2,28 @@
server {
listen 8000;
server_name www.stayreal.online;
ignore_invalid_headers off;
# Allow any size file to be uploaded.
# Set to a value such as 1000m; to restrict file size to a specific value
client_max_body_size 0;
# Disable buffering
proxy_buffering off;
proxy_request_buffering off;
location / {
proxy_pass http://192.168.1.100:9003;
proxy_pass http://192.168.1.100:8080;
proxy_redirect off;#以下是一些反向代理的配置可删除
proxy_pass_header Set-Cookie; # cookie
proxy_set_header Host $host; # 主机名
proxy_set_header X-Real-Ip $remote_addr;# 真实 IP
proxy_set_header X-Forwarded-For $remote_addr; # 表示 HTTP 请求端真实 IP
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_connect_timeout 300;
# Default is HTTP/1, keepalive is only enabled in HTTP/1.1
proxy_http_version 1.1;
proxy_set_header Connection "";
chunked_transfer_encoding off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}