static_websites: Add "" to default boolean value on hsts labels

This will ensure consistency and a clean format of the value eg. no "False" instead of "false" etc.
This commit is contained in:
saibotk 2020-08-14 05:44:45 +02:00
parent 96dbd9176c
commit c9eb84f8f0
No known key found for this signature in database
GPG key ID: A3299C587D5DF523

View file

@ -52,8 +52,8 @@ services:
- "traefik.enable=true" - "traefik.enable=true"
{% if value.hsts is defined %} {% 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.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.stsIncludeSubdomains={{ value.hsts.subdomains | default("false") }}"
{% endif %} {% endif %}
{% if proxy_hiddenservice is defined and proxy_hiddenservice.content is defined %} {% 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" - "traefik.http.middlewares.static_websites_{{ key }}.headers.customresponseheaders.alt-svc=h2={{ proxy_hiddenservice['content'] | b64decode | trim }}:443; ma=2592000"