Created
September 10, 2019 04:40
-
-
Save takeokunn/58bcddd33f4c34704c072fffab5622aa 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
user nginx; | |
worker_processes auto; | |
pid /run/nginx.pid; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
log_format main '$remote_addr - $remote_user [$time_local] "$request" ' | |
'$status $body_bytes_sent "$http_referer" ' | |
'"$http_user_agent" "$http_x_forwarded_for"'; | |
sendfile on; | |
tcp_nopush on; | |
tcp_nodelay on; | |
keepalive_timeout 65; | |
types_hash_max_size 2048; | |
include /etc/nginx/mime.types; | |
default_type application/octet-stream; | |
gzip on; | |
gzip_vary on; | |
gzip_static on; | |
gzip_proxied any; | |
gzip_comp_level 6; | |
gzip_buffers 16 8k; | |
gzip_http_version 1.1; | |
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript; | |
open_file_cache max=1000 inactive=20s; | |
open_file_cache_valid 60s; | |
open_file_cache_min_uses 1; | |
open_file_cache_errors on; | |
fastcgi_cache_path /var/cache/nginx-fastcgi levels=1:2 keys_zone=WHOLE:50m inactive=10h; | |
fastcgi_cache_key "$scheme$request_method$host$request_uri"; | |
fastcgi_cache_methods GET HEAD; | |
fastcgi_cache_use_stale error timeout invalid_header http_500; | |
include /etc/nginx/conf.d/*.conf; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment