Created
December 21, 2022 06:20
-
-
Save modbender/9d3c4ed075feb36308c336bc910f9d15 to your computer and use it in GitHub Desktop.
Nginx configuration to reduce TTFB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
resolver 1.1.1.1 1.0.0.1 valid=300s; | |
resolver_timeout 5s; | |
ssl_buffer_size 8k; | |
ssl_verify_client off; | |
client_body_timeout 12; | |
client_header_timeout 12; | |
client_max_body_size 900m; | |
keepalive_timeout 65; | |
keepalive_disable none; | |
keepalive_requests 10000; | |
reset_timedout_connection on; | |
http2_push_preload on; | |
large_client_header_buffers 4 16k; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment