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

This commit is contained in:
lychang
2025-10-04 02:40:21 +08:00
parent dcd798bb90
commit 8c2bd53475
2 changed files with 30 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
FROM nginx:latest
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY nginx.conf /etc/nginx/nginx.conf
COPY black.conf /etc/nginx/blackip.conf

View File

@@ -1,3 +1,31 @@
http{
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;
@@ -162,3 +190,4 @@ server {
}
}