Skip to content

Commit e4bd11b

Browse files
authored
Traefik: use wb-auth for platform user auth (ITISFoundation#1148)
Since new service for user authentication was introduced. We shall use it in platform user authentication middleware * ITISFoundation/osparc-simcore#8130 * ITISFoundation#1146 * ITISFoundation#1145
1 parent 220efa6 commit e4bd11b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

services/traefik/docker-compose.yml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ services:
131131
- traefik.http.middlewares.ops_ratelimit.ratelimit.sourcecriterion.ipstrategy.depth=1
132132
# Platform user auth: Use this middleware to enforce only authenticated users
133133
# https://doc.traefik.io/traefik/middlewares/http/forwardauth
134-
- traefik.http.middlewares.authenticated_platform_user.forwardauth.address=http://${WEBSERVER_HOST}:${WEBSERVER_PORT}/v0/auth:check
134+
- traefik.http.middlewares.authenticated_platform_user.forwardauth.address=http://${WB_AUTH_WEBSERVER_HOST}:${WB_AUTH_WEBSERVER_PORT}/v0/auth:check
135135
- traefik.http.middlewares.authenticated_platform_user.forwardauth.trustForwardHeader=true
136136
- traefik.http.middlewares.authenticated_platform_user.forwardauth.authResponseHeaders=Set-Cookie,osparc-sc2
137137
#

services/traefik/template.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ DEPLOYMENT_FQDNS_WWW_CAPTURE_TRAEFIK_RULE='${DEPLOYMENT_FQDNS_WWW_CAPTURE_TRAEFI
3434
PUBLIC_NETWORK=${PUBLIC_NETWORK}
3535
MONITORED_NETWORK=${MONITORED_NETWORK}
3636

37-
WEBSERVER_HOST=${WEBSERVER_HOST}
38-
WEBSERVER_PORT=${WEBSERVER_PORT}
37+
WB_AUTH_WEBSERVER_HOST=${WB_AUTH_WEBSERVER_HOST}
38+
WB_AUTH_WEBSERVER_PORT=${WB_AUTH_WEBSERVER_PORT}
3939

4040
TRAEFIK_DOMAINS_REDIRECT_FROM=${TRAEFIK_DOMAINS_REDIRECT_FROM}
4141
TRAEFIK_DOMAINS_REDIRECT_TO=${TRAEFIK_DOMAINS_REDIRECT_TO}

0 commit comments

Comments
 (0)