From 992937c011bce056394a02dac6a8a72fd8d572fe Mon Sep 17 00:00:00 2001 From: vincent Date: Fri, 12 Apr 2024 08:59:40 +0200 Subject: [PATCH] feat: migrate rutorrent on authelia for authent --- nomad-job/rutorrent.nomad | 10 +--------- terraform/vault/nomad.tf | 1 - 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/nomad-job/rutorrent.nomad b/nomad-job/rutorrent.nomad index 5781abb..968eb3a 100644 --- a/nomad-job/rutorrent.nomad +++ b/nomad-job/rutorrent.nomad @@ -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.certresolver=myresolver", "traefik.http.routers.${NOMAD_JOB_NAME}.entrypoints=web,websecure", - "traefik.http.routers.${NOMAD_JOB_NAME}.middlewares=torrentauth", - "traefik.http.middlewares.torrentauth.basicauth.users=admin:${ADMIN_HASHED_PWD}" + "traefik.http.routers.${NOMAD_JOB_NAME}.middlewares=authelia-basic", ] } - template { - data = <<-EOF - ADMIN_HASHED_PWD={{ with secret "secrets/nomad/torrent" }}{{.Data.data.hashed_pwd}}{{ end }} - EOF - destination = "secrets/env" - env = true - } user = "root" config { diff --git a/terraform/vault/nomad.tf b/terraform/vault/nomad.tf index cb90b51..8df8afd 100644 --- a/terraform/vault/nomad.tf +++ b/terraform/vault/nomad.tf @@ -25,7 +25,6 @@ locals { "alertmanager", "vault-backup", "pdns", - "torrent", "ldap", "borgmatic", ]