Created
January 26, 2018 15:41
-
-
Save fabiocruzcoelho/68e897cad7a9026bbcc679da6dc1eabf to your computer and use it in GitHub Desktop.
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
# Size Limits | |
client_body_buffer_size 200M; | |
server_names_hash_bucket_size 128; | |
client_header_buffer_size 128K; | |
client_max_body_size 200M; # php's upload_max_filesize | |
large_client_header_buffers 8 8k; | |
output_buffers 1 32k; | |
postpone_output 1460; | |
proxy_buffers 8 16k; | |
proxy_buffer_size 32k; | |
# Timeouts | |
client_body_timeout 60; | |
client_header_timeout 60; | |
expires off; | |
keepalive_timeout 60; | |
send_timeout 60; | |
# General Options | |
ignore_invalid_headers on; | |
keepalive_requests 10000; | |
#limit_zone gulag $binary_remote_addr 5m; | |
recursive_error_pages on; | |
sendfile on; | |
server_name_in_redirect off; | |
server_tokens off; | |
# TCP options | |
tcp_nodelay on; | |
tcp_nopush on; | |
# Compression | |
gzip on; | |
gzip_buffers 16 8k; | |
gzip_comp_level 6; | |
gzip_http_version 1.0; | |
gzip_min_length 0; | |
gzip_types text/plain text/css application/x-javascript application/atom+xml image/x-icon application/x-perl application/x-httpd-cgi; | |
gzip_disable "MSIE [1-6]\."; | |
gzip_vary on; | |
# Cache | |
open_file_cache max=1000 inactive=20s; | |
open_file_cache_valid 30s; | |
open_file_cache_min_uses 5; | |
open_file_cache_errors off; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment