Change authelia port to avoid conflict with prometheus

This commit is contained in:
IamTheFij 2023-08-02 21:31:08 -07:00
parent 2844493fa1
commit fa0da05343
2 changed files with 4 additions and 4 deletions

View File

@ -13,7 +13,7 @@ default_2fa_method: ""
server:
host: 0.0.0.0
port: 9091
port: {{ env "NOMAD_PORT_main" }}
disable_healthcheck: false
log:

View File

@ -63,7 +63,7 @@ module "authelia" {
image = "authelia/authelia:latest"
args = ["--config", "$${NOMAD_TASK_DIR}/authelia.yml"]
ingress = true
service_port = 9091
service_port = 9999
service_port_static = true
# metrics_port = 9959
@ -88,10 +88,10 @@ module "authelia" {
service_tags = [
# Configure traefik to add this middleware
"traefik.http.middlewares.authelia.forwardAuth.address=http://authelia.nomad:9091/api/verify?rd=https%3A%2F%2Fauthelia.thefij.rocks%2F",
"traefik.http.middlewares.authelia.forwardAuth.address=http://authelia.nomad:$${NOMAD_PORT_main}/api/verify?rd=https%3A%2F%2Fauthelia.thefij.rocks%2F",
"traefik.http.middlewares.authelia.forwardAuth.trustForwardHeader=true",
"traefik.http.middlewares.authelia.forwardAuth.authResponseHeaders=Remote-User,Remote-Groups,Remote-Name,Remote-Email",
"traefik.http.middlewares.authelia-basic.forwardAuth.address=http://authelia.nomad:9091/api/verify?auth=basic",
"traefik.http.middlewares.authelia-basic.forwardAuth.address=http://authelia.nomad:$${NOMAD_PORT_main}/api/verify?auth=basic",
"traefik.http.middlewares.authelia-basic.forwardAuth.trustForwardHeader=true",
"traefik.http.middlewares.authelia-basic.forwardAuth.authResponseHeaders=Remote-User,Remote-Groups,Remote-Name,Remote-Email",
]