cleanup: traefik entrypoints and format

This commit is contained in:
wizzdom 2024-09-11 23:44:04 +01:00
parent a4094cff61
commit 784d052e33
16 changed files with 81 additions and 78 deletions

View file

@ -42,6 +42,7 @@ job "atlas" {
config { config {
image = "ghcr.io/redbrick/atlas:latest" image = "ghcr.io/redbrick/atlas:latest"
ports = ["http"] ports = ["http"]
force_pull = true
} }
resources { resources {

View file

@ -30,11 +30,10 @@ job "hedgedoc" {
"traefik.frontend.headers.STSSeconds=63072000", "traefik.frontend.headers.STSSeconds=63072000",
"traefik.frontend.headers.browserXSSFilter=true", "traefik.frontend.headers.browserXSSFilter=true",
"traefik.frontend.headers.contentTypeNosniff=true", "traefik.frontend.headers.contentTypeNosniff=true",
"traefik.frontend.headers.customResponseHeaders=alt-svc:h2=l3sb47bzhpbelafss42pspxzqo3tipuk6bg7nnbacxdfbz7ao6semtyd.onion:443; ma=2592000",
"traefik.enable=true", "traefik.enable=true",
"traefik.port=${NOMAD_PORT_http}", "traefik.port=${NOMAD_PORT_http}",
"traefik.http.routers.md.entrypoints=web,websecure",
"traefik.http.routers.md.rule=Host(`md.redbrick.dcu.ie`) || Host(`md.rb.dcu.ie`)", "traefik.http.routers.md.rule=Host(`md.redbrick.dcu.ie`) || Host(`md.rb.dcu.ie`)",
"traefik.http.routers.md.tls=true",
"traefik.http.routers.md.tls.certresolver=lets-encrypt", "traefik.http.routers.md.tls.certresolver=lets-encrypt",
] ]
} }

View file

@ -26,8 +26,8 @@ job "plausible" {
tags = [ tags = [
"traefik.enable=true", "traefik.enable=true",
"traefik.http.routers.plausible.rule=Host(`plausible.redbrick.dcu.ie`)", "traefik.http.routers.plausible.rule=Host(`plausible.redbrick.dcu.ie`) || Host(`plausible.rb.dcu.ie`)",
"traefik.http.routers.plausible.entrypoints=websecure", "traefik.http.routers.plausible.entrypoints=web,websecure",
"traefik.http.routers.plausible.tls.certresolver=lets-encrypt" "traefik.http.routers.plausible.tls.certresolver=lets-encrypt"
] ]
} }

View file

@ -19,6 +19,7 @@ job "shlink" {
tags = [ tags = [
"traefik.enable=true", "traefik.enable=true",
"traefik.http.routers.shlink-api.entrypoints=web,websecure",
"traefik.http.routers.shlink-api.rule=Host(`s.rb.dcu.ie`)", "traefik.http.routers.shlink-api.rule=Host(`s.rb.dcu.ie`)",
"traefik.http.routers.shlink-api.tls=true", "traefik.http.routers.shlink-api.tls=true",
"traefik.http.routers.shlink-api.tls.certresolver=lets-encrypt", "traefik.http.routers.shlink-api.tls.certresolver=lets-encrypt",
@ -77,6 +78,7 @@ EOH
# #
# tags = [ # tags = [
# "traefik.enable=true", # "traefik.enable=true",
# "traefik.http.routers.shlink-web.entrypoints=web,websecure",
# "traefik.http.routers.shlink-web.rule=Host(`shlink.rb.dcu.ie`)", # "traefik.http.routers.shlink-web.rule=Host(`shlink.rb.dcu.ie`)",
# "traefik.http.routers.shlink-web.tls=true", # "traefik.http.routers.shlink-web.tls=true",
# "traefik.http.routers.shlink-web.tls.certresolver=lets-encrypt", # "traefik.http.routers.shlink-web.tls.certresolver=lets-encrypt",

View file

@ -37,6 +37,7 @@ job "dcusr-outline" {
tags = [ tags = [
"traefik.enable=true", "traefik.enable=true",
"traefik.port=${NOMAD_PORT_http}", "traefik.port=${NOMAD_PORT_http}",
"traefik.http.routers.dcusr-outline.entrypoints=web,websecure",
"traefik.http.routers.dcusr-outline.rule=Host(`${NOMAD_META_domain}`)", "traefik.http.routers.dcusr-outline.rule=Host(`${NOMAD_META_domain}`)",
"traefik.http.routers.dcusr-outline.tls=true", "traefik.http.routers.dcusr-outline.tls=true",
"traefik.http.routers.dcusr-outline.tls.certresolver=lets-encrypt", "traefik.http.routers.dcusr-outline.tls.certresolver=lets-encrypt",

View file

@ -9,7 +9,7 @@ job "midnight-calendarbot" {
driver = "docker" driver = "docker"
config { config {
image = "ghcr.io/nightmarishblue/calendarbot:master" image = "ghcr.io/nightmarishblue/calendarbot:latest"
force_pull = true force_pull = true
} }