Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user www-data;
- worker_processes auto;
- pid /run/nginx.pid;
- include /etc/nginx/modules-enabled/*.conf;
- worker_rlimit_nofile 65535;
- events {
- worker_connections 32768;
- accept_mutex off;
- use epoll;
- }
- http {
- ##
- # Basic Settings
- ##
- sendfile on;
- tcp_nopush on;
- tcp_nodelay on;
- keepalive_timeout 30;
- server_tokens off;
- include /etc/nginx/mime.types;
- default_type application/octet-stream;
- ##
- # Logging Settings
- ##
- access_log off;
- error_log /var/log/nginx/error.log error;
- ##
- # Gzip Settings
- ##
- gzip on;
- gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;
- ##
- # SSL Settings
- ##
- ssl_dhparam /etc/nginx/ssl/dhparam.pem;
- ssl_protocols TLSv1.2 TLSv1.1 TLSv1;
- ssl_prefer_server_ciphers on;
- ssl_ciphers EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EECDH+ECDSA+SHA512:EECDH+ECDSA+SHA384:EECDH+ECDSA+SHA256:ECDH+AESGCM:ECDH+AES256:DH+AESGCM:DH+AES256:RSA+AESGCM:!aNULL:!eNULL:!LOW:!RC4:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS;
- ssl_session_cache shared:TLS:128m;
- ##
- # Cache Settings
- ##
- proxy_cache_path /var/www/cache levels=1:2 keys_zone=STATIC:50m inactive=90d max_size=1000g;
- log_format cache '$remote_addr - $host [$time_local] "$request" $status '
- '$body_bytes_sent "$http_referer" '
- 'rt=$request_time ut="$upstream_response_time" '
- 'cs=$upstream_cache_status';
- include /etc/nginx/conf.d/*.conf;
- include /etc/nginx/sites-enabled/*;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement