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

This commit is contained in:
lychang
2025-10-03 21:54:58 +08:00
parent 88cb670715
commit 4a5fcf2187
3 changed files with 2366 additions and 0 deletions

View File

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

2364
black.conf Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -68,6 +68,7 @@ server {
proxy_set_header Host $host; # 主机名
proxy_set_header X-Real-Ip $remote_addr;# 真实 IP
proxy_set_header X-Forwarded-For $remote_addr; # 表示 HTTP 请求端真实 IP
include /etc/nginx/blackip.conf;
}
}