correct template to insert policy at the right spot
authorSam Saffron <sam.saffron@gmail.com>
Tue, 23 Oct 2018 21:56:14 +0000 (08:56 +1100)
committerSam Saffron <sam.saffron@gmail.com>
Tue, 23 Oct 2018 21:56:14 +0000 (08:56 +1100)
templates/web.ssl.template.yml

index a76ae0d53e372f3a902e8c25e9b36cc61db83972..8999c54e6459e4f6c07ace3cf2d2706e41f12f54 100644 (file)
@@ -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