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:
parent
96dbd9176c
commit
c9eb84f8f0
1 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||||
|
|
Loading…
Add table
Reference in a new issue