More attempts

This commit is contained in:
Nemo 2017-12-26 19:17:21 +05:30
parent 69040999db
commit 63225a89e2
2 changed files with 6 additions and 7 deletions

View File

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

View File

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