-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Includes new secure_app fixture that gets an A+ from Mozilla Observatory
[#165481690]
- Loading branch information
Ryan Moran
committed
Sep 30, 2019
1 parent
a5c8b45
commit 7d9d80c
Showing
3 changed files
with
20 additions
and
0 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,5 @@ | ||
location_include: includes/*.conf | ||
force_https: true | ||
http_strict_transport_security: true | ||
http_strict_transport_security_include_subdomains: true | ||
http_strict_transport_security_preload: true |
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,10 @@ | ||
<html> | ||
<head> | ||
<title>Secure Static file demo app</title> | ||
</head> | ||
<body> | ||
<p> | ||
This is a demo app that will receive an A+ when run against the <a href="https://observatory.mozilla.org">Mozilla Observatory</a> | ||
</p> | ||
</body> | ||
</html> |
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,5 @@ | ||
add_header Content-Security-Policy "default-src 'none'; base-uri 'none'; form-action 'none'; img-src 'self'; object-src 'self'; font-src 'self'; script-src 'self'; style-src 'self'; frame-ancestors 'none'"; | ||
add_header X-Content-Type-Options nosniff; | ||
add_header X-Frame-Options DENY; | ||
add_header X-XSS-Protection "1; mode=block"; | ||
add_header Referrer-Policy no-referrer; |