Created
March 8, 2018 05:34
-
-
Save Masamasamasashito/eb04bfcabb380e9b415eeaf24e812cd7 to your computer and use it in GitHub Desktop.
kusanagi8.2.1-1 nginx.conf 20180308
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
## nginx.conf | |
user httpd www; | |
worker_processes auto; | |
worker_rlimit_nofile 20000; | |
error_log /var/log/nginx/error.log warn; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 4096; | |
multi_accept on; | |
use epoll; | |
} | |
http { | |
server_tokens off; | |
include /etc/nginx/mime.types; | |
default_type application/octet-stream; | |
charset UTF-8; | |
server_names_hash_bucket_size 128; | |
log_format main '$request_time $sent_http_x_f_cache $sent_http_x_b_cache ' | |
'$remote_addr - $remote_user [$time_local] "$request" ' | |
'$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; | |
access_log /var/log/nginx/access.log main; | |
client_max_body_size 20M; | |
client_body_buffer_size 768k; | |
sendfile on; | |
tcp_nopush on; | |
tcp_nodelay on; | |
keepalive_timeout 5; | |
connection_pool_size 1024; | |
request_pool_size 8k; | |
gzip on; | |
gzip_http_version 1.0; | |
gzip_disable "msie6"; | |
gzip_proxied any; | |
gzip_min_length 1024; | |
gzip_comp_level 2; | |
gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript application/json; | |
brotli on; | |
brotli_static on; | |
brotli_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript application/json; | |
brotli_comp_level 3; | |
brotli_min_length 1024; | |
open_file_cache max=100000 inactive=20s; | |
open_file_cache_valid 30s; | |
open_file_cache_min_uses 2; | |
open_file_cache_errors on; | |
fastcgi_cache_path /var/cache/nginx/wordpress levels=1:2 keys_zone=wpcache:30m max_size=512M inactive=600m; | |
fastcgi_ignore_headers "Vary" "Cache-Control" "Expires"; | |
include /etc/nginx/conf.d/*.conf; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment