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

This commit is contained in:
lychang
2025-10-04 02:36:09 +08:00
parent dbc070488f
commit dcd798bb90

View File

@@ -1,30 +1,3 @@
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:8080;
proxy_redirect off;#以下是一些反向代理的配置可删除
proxy_pass_header Set-Cookie; # cookie
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";
}
}
server {
server_name voce.liubeiting.cn;