diff --git a/roles/static_websites/templates/docker-compose.yml b/roles/static_websites/templates/docker-compose.yml index a0afbeb..71afeea 100644 --- a/roles/static_websites/templates/docker-compose.yml +++ b/roles/static_websites/templates/docker-compose.yml @@ -52,8 +52,8 @@ services: - "traefik.enable=true" {% if value.hsts is defined %} - - "traefik.http.middlewares.static_websites_{{ key }}.headers.stsPreload={{ value.hsts.preloaded | default(false) }}" - - "traefik.http.middlewares.static_websites_{{ key }}.headers.stsIncludeSubdomains={{ value.hsts.subdomains | default(false) }}" + - "traefik.http.middlewares.static_websites_{{ key }}.headers.stsPreload={{ value.hsts.preloaded | default("false") }}" + - "traefik.http.middlewares.static_websites_{{ key }}.headers.stsIncludeSubdomains={{ value.hsts.subdomains | default("false") }}" {% endif %} {% if proxy_hiddenservice is defined and proxy_hiddenservice.content is defined %} - "traefik.http.middlewares.static_websites_{{ key }}.headers.customresponseheaders.alt-svc=h2={{ proxy_hiddenservice['content'] | b64decode | trim }}:443; ma=2592000"