Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
updating h5bp ssl config
- Loading branch information
Showing
6 changed files
with
48 additions
and
9 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# The X-Frame-Options header indicates whether a browser should be allowed | ||
# to render a page within a frame or iframe. | ||
add_header X-Frame-Options SAMEORIGIN; | ||
|
||
# MIME type sniffing security protection | ||
# There are very few edge cases where you wouldn't want this enabled. | ||
add_header X-Content-Type-Options nosniff; | ||
|
||
# The X-XSS-Protection header is used by Internet Explorer version 8+ | ||
# The header instructs IE to enable its inbuilt anti-cross-site scripting filter. | ||
add_header X-XSS-Protection "1; mode=block"; | ||
|
||
# with Content Security Policy (CSP) enabled (and a browser that supports it (http://caniuse.com/#feat=contentsecuritypolicy), | ||
# you can tell the browser that it can only download content from the domains you explicitly allow | ||
# CSP can be quite difficult to configure, and cause real issues if you get it wrong | ||
# There is website that helps you generate a policy here http://cspisawesome.com/ | ||
# add_header Content-Security-Policy "default-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' https://www.google-analytics.com;"; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,11 @@ | ||
# Prevent mobile network providers from modifying your site | ||
# | ||
# (!) If you are using `ngx_pagespeed`, please note that setting | ||
# the `Cache-Control: no-transform` response header will prevent | ||
# `PageSpeed` from rewriting `HTML` files, and, if | ||
# `pagespeed DisableRewriteOnNoTransform off` is not used, also | ||
# from rewriting other resources. | ||
# | ||
# https://developers.google.com/speed/pagespeed/module/configuration#notransform | ||
|
||
add_header "Cache-Control" "no-transform"; |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
# OCSP stapling... | ||
ssl_stapling on; | ||
ssl_stapling_verify on; | ||
#ssl_trusted_certificate /path/to/ca.crt; | ||
resolver 8.8.8.8; | ||
|
||
#trusted cert must be made up of your intermediate certificate followed by root certificate | ||
#ssl_trusted_certificate /path/to/ca.crt; | ||
|
||
resolver 8.8.8.8 8.8.4.4 216.146.35.35 216.146.36.36 valid=60s; | ||
resolver_timeout 2s; |
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
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