通过map去代替allow/deny
1 | map $remote_addr $globals_internal_map_acl { |
map anything
1 | map $http_user_agent $device_redirect { |
work_processes
I think for high load proxy servers (also standalone servers) good value is
ALL_CORES - 1
(please test it before used).
gzip
You shouldn’t use HTTP compression on private responses when using TLS.
Compression can be (I think) okay to HTTP compress publicly available static content like css or js and HTML content with zero sensitive info (like an “About Us” page).
#####Mitigating Slow HTTP DoS attack (Closing Slow Connections)
1 | client_body_timeout 10s; |