Switch to locals for common traefik labels #4

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

View File

@ -1,10 +1,10 @@
locals {
traefik_common_labels {
traefik_common_labels = {
"traefik.frontend.passHostHeader" = "true"
"traefik.frontend.headers.SSLTemporaryRedirect" = "true"
"traefik.frontend.headers.STSSeconds" = "2592000"
"traefik.frontend.headers.STSIncludeSubdomains" = "false"
"traefik.frontend.headers.customResponseHeaders" = "${var.xpoweredby}"
"traefik.frontend.headers.customFrameOptionsValue" = "${var.xfo_allow}"
# "traefik.frontend.headers.customResponseHeaders" = "${var.xpoweredby}"
# "traefik.frontend.headers.customFrameOptionsValue" = "${var.xfo_allow}"
}
}

View File

@ -9,11 +9,10 @@ resource "docker_container" "traefik" {
ip = "${var.ips["eth0"]}"
}
# Admin Backend
ports {
internal = 1111
external = 1111
ip = "${var.ips["tun0"]}"
internal = 1111
external = 1111
ip = "${var.ips["tun0"]}"
}
# Local Web Server