feat: migrate rutorrent on authelia for authent
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
vincent 2024-04-12 08:59:40 +02:00
parent 5fe61223c3
commit 992937c011
2 changed files with 1 additions and 10 deletions

View File

@ -43,17 +43,9 @@ job "torrent" {
"traefik.http.routers.${NOMAD_JOB_NAME}.tls.domains[0].sans=${NOMAD_JOB_NAME}.ducamps.eu", "traefik.http.routers.${NOMAD_JOB_NAME}.tls.domains[0].sans=${NOMAD_JOB_NAME}.ducamps.eu",
"traefik.http.routers.${NOMAD_JOB_NAME}.tls.certresolver=myresolver", "traefik.http.routers.${NOMAD_JOB_NAME}.tls.certresolver=myresolver",
"traefik.http.routers.${NOMAD_JOB_NAME}.entrypoints=web,websecure", "traefik.http.routers.${NOMAD_JOB_NAME}.entrypoints=web,websecure",
"traefik.http.routers.${NOMAD_JOB_NAME}.middlewares=torrentauth", "traefik.http.routers.${NOMAD_JOB_NAME}.middlewares=authelia-basic",
"traefik.http.middlewares.torrentauth.basicauth.users=admin:${ADMIN_HASHED_PWD}"
] ]
} }
template {
data = <<-EOF
ADMIN_HASHED_PWD={{ with secret "secrets/nomad/torrent" }}{{.Data.data.hashed_pwd}}{{ end }}
EOF
destination = "secrets/env"
env = true
}
user = "root" user = "root"
config { config {

View File

@ -25,7 +25,6 @@ locals {
"alertmanager", "alertmanager",
"vault-backup", "vault-backup",
"pdns", "pdns",
"torrent",
"ldap", "ldap",
"borgmatic", "borgmatic",
] ]