HSTS Preload on tatooine.club

This commit is contained in:
Nemo 2023-06-22 14:24:26 +05:30
parent 4a4504447f
commit d59512c625
3 changed files with 12 additions and 3 deletions

View File

@ -6,6 +6,12 @@ module "mastodon-web" {
networks = ["mastodon", "traefik", "external", "postgres"]
labels = {
"traefik.frontend.headers.STSPreload" = "true"
"traefik.frontend.headers.STSIncludeSubdomains" = "true"
"traefik.frontend.headers.STSSeconds" = "31536000"
}
env = concat(local.env,[
"MAX_THREADS=4",
"WEB_CONCURRENCY=5"

View File

@ -41,6 +41,8 @@ locals {
var.web.expose ? local.web : null,
# And finally a label for Basic Authentication if the service wants it
var.web.auth != null ? (var.web.auth ? local.traefik_auth_labels : null) : null,
var.labels,
)
networks = concat(var.networks, var.web.expose ? ["traefik"] : [])

View File

@ -55,9 +55,10 @@ variable "env" {
default = []
}
# variable "labels" {
# description = "labels"
# }
variable "labels" {
description = "labels"
default = {}
}
variable "xpoweredby" {
default = "X-Powered-By:Allomancy||X-Server:Blackbox"