Switch to locals for common traefik labels #4

Closed
nemo wants to merge 7 commits from locals into master
2 changed files with 1 additions and 1 deletions
Showing only changes of commit 57ffe866a3 - Show all commits

View File

@ -1,7 +1,6 @@
locals {
traefik_common_labels {
"traefik.enable" = "true"
"traefik.frontend.passHostHeader" = "true"
"traefik.frontend.headers.SSLTemporaryRedirect" = "true"
"traefik.frontend.headers.STSSeconds" = "2592000"
"traefik.frontend.headers.STSIncludeSubdomains" = "false"

View File

@ -5,6 +5,7 @@ resource docker_container "transmission" {
labels = "${merge(
local.traefik_common_labels,
map(
"traefik.frontend.auth.basic", "${var.basic_auth}",
"traefik.port", 9091,
))}"