Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 443 ssl spdy;
- listen bubbleboom.ru:80; # open port 80
- server_name .bubbleboom.ru; # dot this detected ssl_certificate from www
- ssl_dhparam /usr/local/nginx/conf/ssl/dhparam.pem;
- ssl_certificate /usr/local/nginx/conf/ssl/bubbleboom/ssl_bundle.pem;
- ssl_certificate_key /usr/local/nginx/conf/ssl/bubbleboom/ssl.key;
- ssl_session_cache shared:SSL:10m;
- ssl_session_timeout 10m;
- ssl_protocols TLSv1.1 TLSv1.2;
- ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!3DES:!MD5:!PSK';
- ssl_prefer_server_ciphers on;
- add_header Strict-Transport-Security "max-age=31536000; preload";
- add_header Public-Key-Pins 'pin-sha256="kb6xLprt35abNnSn74my4Dkfya9arbk5zN5a60YzuqE="; max-age=5184000;'; # уточнить цифру
- add_header Content-Security-Policy-Report-Only "default-src https:; script-src https: 'unsafe-eval' 'unsafe-inline'; style-src https: 'unsafe-inline'; img-src https: data:; font-src https: data:; report-uri /csp-report";
- add_header X-Content-Type-Options "nosniff";
- add_header X-Frame-Options SAMEORIGIN;
- ssl_buffer_size 1400;
- add_header Alternate-Protocol 443:npn-spdy/3;
- spdy_headers_comp 5;
- ssl_session_tickets on;
- # enable ocsp stapling
- resolver 8.8.8.8 8.8.4.4 valid=10m;
- resolver_timeout 10s;
- ssl_stapling on;
- ssl_stapling_verify on;
- ssl_trusted_certificate /usr/local/nginx/conf/ssl/startssl.pem;
- access_log /home/nginx/domains/bubbleboom.ru/log/access.log combined buffer=256k flush=60m;
- error_log /home/nginx/domains/bubbleboom.ru/log/error.log;
- root /home/nginx/domains/bubbleboom.ru/public;
- location / {
- # block common exploits, sql injections etc
- #include /usr/local/nginx/conf/block.conf;
- # Enables directory listings when index file not found
- #autoindex on;
- # Shows file listing times as local time
- #autoindex_localtime on;
- # Enable for vBulletin usage WITHOUT vbSEO installed
- #try_files $uri $uri/ /index.php;
- }
- #include /usr/local/nginx/conf/staticfiles.conf;
- include /usr/local/nginx/conf/php.conf;
- include /usr/local/nginx/conf/drop.conf;
- #include /usr/local/nginx/conf/errorpage.conf;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement