nginx客户端真实IP配置
https://www.cnblogs.com/kevingrace/p/8269955.html
include mime.types;
default_type application/octet-stream;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
limit_req_zone $binary_remote_addr zone=one:10m rate=1r/s;
access_log logs/access.log ;
#max_ranges 1
sendfile on;
client_max_body_size 1024M;
tcp_nopush on;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE
ssl_prefer_server_ciphers on;
#keepalive_timeout 0;
keepalive_timeout 3600;
include ./config/*.conf;
server_tokens off;
无可奈何花落去,似曾相识燕归来