ip-info-lookup-server/nginx.conf

19 lines
527 B
Nginx Configuration File
Raw Normal View History

2023-08-29 08:37:03 +00:00
limit_req_zone $binary_remote_addr zone=ip:10m rate=5r/s;
server {
listen 80;
listen [::]:80;
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name "Your domain name";
# ssl related config
location / {
limit_req zone=ip;
proxy_pass http://127.0.0.1:8080;
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;
}
}