-
-
Save ReinForce-II/ce4b0aad8a32cfdc0b49ec97c7c1a278 to your computer and use it in GitHub Desktop.
Revisions
-
r0mdau revised this gist
Jun 16, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -27,7 +27,7 @@ server { root /path/to/public/app; } # Init dhparam.pem openssl dhparam -out /path/to/ssl/certs/dhparam.pem 4096 # Better security -
r0mdau renamed this gist
Jun 16, 2016 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
r0mdau revised this gist
Jun 16, 2016 . 3 changed files with 16 additions and 12 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,11 +0,0 @@ This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1 +0,0 @@ This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -25,4 +25,20 @@ server { index index.html index.php; root /path/to/public/app; } # Initi dhparam.pem openssl dhparam -out /path/to/ssl/certs/dhparam.pem 4096 # Better security # I prefer putting this in `nginx.conf` for all vhosts server { ... server_tokens off; add_header Strict-Transport-Security "max-age=63072000;"; add_header X-Frame-Options SAMEORIGIN; add_header X-Content-Type-Options nosniff; add_header X-XSS-Protection "1; mode=block"; } -
r0mdau created this gist
Jun 16, 2016 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ # I prefer putting this in `nginx.conf` for all vhosts server { ... server_tokens off; add_header Strict-Transport-Security "max-age=63072000;"; add_header X-Frame-Options SAMEORIGIN; add_header X-Content-Type-Options nosniff; add_header X-XSS-Protection "1; mode=block"; } This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ openssl dhparam -out /path/to/ssl/certs/dhparam.pem 4096 This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,28 @@ server { listen 443 ssl deferred; server_name example.com; ssl_session_cache shared:SSL:10m; ssl_session_timeout 24h; ssl_buffer_size 4k; ssl_session_tickets off; ssl_protocols TLSv1.2; ssl_ciphers 'AES256+EECDH:AES256+EDH:!aNULL'; ssl_prefer_server_ciphers on; ssl_certificate /path/to/ssl/certificate.crt; ssl_trusted_certificate /path/to/ssl/certificate.crt; ssl_certificate_key /path/to/ssl/certificate.key; ssl_dhparam /path/to/ssl/certs/dhparam.pem; ssl_ecdh_curve secp384r1; ssl_stapling on; ssl_stapling_verify on; resolver 8.8.4.4 8.8.8.8 valid=300s; resolver_timeout 10s; index index.html index.php; root /path/to/public/app; }