more permission fixes for anacron, keep in base image as well
[discourse_docker.git] / templates / web.ssl.template.yml
index 21bc9d467beaeb2f4ec2076c9c3302a47e9c407f..b1ce92875248d946627916769532c7b7519f84d1 100644 (file)
@@ -14,6 +14,7 @@ run:
        }
        server {
   - replace:
+     hook: ssl
      filename: "/etc/nginx/conf.d/discourse.conf"
      from: /listen 80;\s+gzip on;/m
      to: |
@@ -31,8 +32,7 @@ run:
        ssl_session_timeout 1d;
        ssl_session_cache shared:SSL:1m;
 
-       # remember the certificate for a year and automatically connect to HTTPS for this domain
-       add_header Strict-Transport-Security 'max-age=31536000';
+       add_header Strict-Transport-Security 'max-age=31536000'; # remember the certificate for a year and automatically connect to HTTPS for this domain
 
        gzip on;