Skip to content

Commit ab514aa

Browse files
committed
use and expose services internally as well
1 parent 397e4c5 commit ab514aa

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

job.nomad.hcl

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ job "dfunkt" {
1616
"traefik.enable=true",
1717
"traefik.http.routers.dfunkt.rule=Host(`dfunkt.datasektionen.se`)",
1818
"traefik.http.routers.dfunkt.tls.certresolver=default",
19+
20+
"traefik.http.routers.dfunkt-internal.rule=Host(`dfunkt.nomad.dsekt.internal`)",
21+
"traefik.http.routers.dfunkt-internal.entrypoints=web-internal",
1922
]
2023
}
2124

@@ -36,9 +39,9 @@ DATABASE_URL=postgres://dfunkt:{{ .database_password }}@postgres.dsekt.internal:
3639
LOGIN_KEY={{ .login_api_key }}
3740
{{ end }}
3841
NODE_ENV=production
39-
PLS_URL=https://pls.datasektionen.se
40-
LOGIN_API_URL=https://login.datasektionen.se
41-
LOGIN_FRONTEND_URL=https://login.datasektionen.se
42+
PLS_URL=http://pls.nomad.dsekt.internal
43+
LOGIN_API_URL=http://logout.nomad.dsekt.internal/legacyapi
44+
LOGIN_FRONTEND_URL=https://logout.datasektionen.se/legacyapi
4245
ENV
4346
destination = "local/.env"
4447
env = true

0 commit comments

Comments
 (0)