nginx setting

https://gold.xitu.io/post/58846fceb123db7389d2b70e?utm_source=gold_browser_extension

#user nobody; worker_processes 1; error_log /disk/nginx/logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; pid logs/nginx.pid; events { worker_connections 2048; } http { include mime.types; default_type application/octet-stream; access_log /disk/nginx/logs/host.access.log; sendfile on; #tcp_nopush on; #keepalive_timeout 0; keepalive_timeout 65; #gzip on; limit_req_zone $binary_remote_addr zone=perip:10m rate=1r/s; limit_req_zone $server_name zone=perserver:10m rate=10r/s; # HTTPS server server { limit_req zone=perip burst=5 nodelay;//限流配置 limit_req zone=perserver burst=10; listen 443; server_name mp.baidu.com; ssl on; ssl_certificate 1_mp.baidu.com_bundle.crt; ssl_certificate_key 2_mp.baidu.com.key; ssl_session_timeout 5m; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE; ssl_prefer_server_ciphers on; location / { root html; index index.html index.htm; proxy_pass http://10.105.26.210; //直接转发 } } }

Show your support

Clapping shows how much you appreciated Alex Leung’s story.