Skip to content

Commit

Permalink
Includes new secure_app fixture that gets an A+ from Mozilla Observatory
Browse files Browse the repository at this point in the history
[#165481690]
  • Loading branch information
Ryan Moran committed Sep 30, 2019
1 parent a5c8b45 commit 7d9d80c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions fixtures/secure_app/Staticfile
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
10 changes: 10 additions & 0 deletions fixtures/secure_app/index.html
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>
5 changes: 5 additions & 0 deletions fixtures/secure_app/nginx/conf/includes/headers.conf
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;

0 comments on commit 7d9d80c

Please sign in to comment.