Switch to locals for common traefik labels #4

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

View File

@ -1,10 +1,13 @@
locals {
traefik_common_labels {
"traefik.enable" = "true"
// HSTS
"traefik.frontend.headers.SSLTemporaryRedirect" = "true"
"traefik.frontend.headers.STSSeconds" = "2592000"
"traefik.frontend.headers.STSIncludeSubdomains" = "false"
// X-Powered-By, Server headers
"traefik.frontend.headers.customResponseHeaders" = "${var.xpoweredby}"
// X-Frame-Options
"traefik.frontend.headers.customFrameOptionsValue" = "${var.xfo_allow}"
"traefik.frontend.headers.contentTypeNosniff" = "true"
"traefik.frontend.headers.browserXSSFilter" = "true"