Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # For more information on configuration, see:
- # * Official English Documentation: http://nginx.org/en/docs/
- # * Official Russian Documentation: http://nginx.org/ru/docs/
- user nginx;
- worker_processes 1;
- error_log /var/log/nginx/error.log;
- #error_log /var/log/nginx/error.log notice;
- #error_log /var/log/nginx/error.log info;
- pid /run/nginx.pid;
- events {
- worker_connections 1024;
- }
- http {
- include /etc/nginx/mime.types;
- default_type application/octet-stream;
- # As described in: https://cipherli.st/
- # ssl_ciphers "AES128+EECDH:AES128+EDH";
- # ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
- # ssl_prefer_server_ciphers on;
- # ssl_session_cache shared:SSL:10m;
- # add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; preload";
- add_header X-Frame-Options DENY;
- add_header X-Content-Type-Options nosniff;
- ssl_session_tickets off;
- #ssl_stapling on; # Requires nginx >= 1.3.7
- #ssl_stapling_verify on; # Requires nginx => 1.3.7
- # resolver $DNS-IP-1 $DNS-IP-2 valid=300s;
- resolver_timeout 5s;
- server_tokens off;
- log_format main '$remote_addr - $remote_user [$time_local] "$request" '
- '$status $body_bytes_sent "$http_referer" '
- '"$http_user_agent" "$upstream_addr" '
- '"$server_port" "$request_time" cache=$upstream_cache_status';
- access_log /var/log/nginx/access.log main;
- sendfile on;
- #tcp_nopush on;
- #keepalive_timeout 0;
- keepalive_timeout 65;
- #gzip on;
- index index.html index.htm;
- # Load modular configuration files from the /etc/nginx/conf.d directory.
- # See http://nginx.org/en/docs/ngx_core_module.html#include
Add Comment
Please, Sign In to add comment