projects
/
discourse_docker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42aefc3
)
correct template to insert policy at the right spot
author
Sam Saffron
<sam.saffron@gmail.com>
Tue, 23 Oct 2018 21:56:14 +0000
(08:56 +1100)
committer
Sam Saffron
<sam.saffron@gmail.com>
Tue, 23 Oct 2018 21:56:14 +0000
(08:56 +1100)
templates/web.ssl.template.yml
patch
|
blob
|
blame
|
history
diff --git
a/templates/web.ssl.template.yml
b/templates/web.ssl.template.yml
index a76ae0d53e372f3a902e8c25e9b36cc61db83972..8999c54e6459e4f6c07ace3cf2d2706e41f12f54 100644
(file)
--- a/
templates/web.ssl.template.yml
+++ b/
templates/web.ssl.template.yml
@@
-39,7
+39,7
@@
run:
}
- replace:
filename: "/etc/nginx/conf.d/discourse.conf"
- from:
/add_header Referrer-Policy 'no-referrer-when-downgrade';/m
+ from:
"location @discourse {"
to: |
- add_header Referrer-Policy 'no-referrer-when-downgrade';
+ location @discourse {
add_header Strict-Transport-Security 'max-age=31536000'; # remember the certificate for a year and automatically connect to HTTPS for this domain