From ab514aacb97bb3434c07c6c86c14e1f2840017c4 Mon Sep 17 00:00:00 2001 From: Mathias Magnusson Date: Sun, 24 Nov 2024 19:37:13 +0100 Subject: [PATCH] use and expose services internally as well --- job.nomad.hcl | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/job.nomad.hcl b/job.nomad.hcl index 536a097..ec81999 100644 --- a/job.nomad.hcl +++ b/job.nomad.hcl @@ -16,6 +16,9 @@ job "dfunkt" { "traefik.enable=true", "traefik.http.routers.dfunkt.rule=Host(`dfunkt.datasektionen.se`)", "traefik.http.routers.dfunkt.tls.certresolver=default", + + "traefik.http.routers.dfunkt-internal.rule=Host(`dfunkt.nomad.dsekt.internal`)", + "traefik.http.routers.dfunkt-internal.entrypoints=web-internal", ] } @@ -36,9 +39,9 @@ DATABASE_URL=postgres://dfunkt:{{ .database_password }}@postgres.dsekt.internal: LOGIN_KEY={{ .login_api_key }} {{ end }} NODE_ENV=production -PLS_URL=https://pls.datasektionen.se -LOGIN_API_URL=https://login.datasektionen.se -LOGIN_FRONTEND_URL=https://login.datasektionen.se +PLS_URL=http://pls.nomad.dsekt.internal +LOGIN_API_URL=http://logout.nomad.dsekt.internal/legacyapi +LOGIN_FRONTEND_URL=https://logout.datasektionen.se/legacyapi ENV destination = "local/.env" env = true