Skip to content

Commit

Permalink
Hide invitations swagger behind auth (#401)
Browse files Browse the repository at this point in the history
* Return removed staging CA for letsenrypt

* Fix missing $

* Hide invitations swagger behind basic auth
  • Loading branch information
YuryHrytsuk authored Oct 20, 2023
1 parent d382bd8 commit 9a0b212
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions services/simcore/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -221,15 +221,11 @@ services:
# internal traefik
- traefik.enable=true
- io.simcore.zone=${TRAEFIK_SIMCORE_ZONE}
- traefik.http.routers.${SWARM_STACK_NAME}_invitations.service=${SWARM_STACK_NAME}_invitations
- traefik.http.routers.${SWARM_STACK_NAME}_invitations.rule=(${DEPLOYMENT_FQDNS_CAPTURE_INVITATIONS})
- traefik.http.routers.${SWARM_STACK_NAME}_invitations.entrypoints=http
- traefik.http.routers.${SWARM_STACK_NAME}_invitations.priority=50
- traefik.http.services.${SWARM_STACK_NAME}_invitations.loadbalancer.server.port=8000
- traefik.http.routers.${SWARM_STACK_NAME}_invitations_swagger.service=${SWARM_STACK_NAME}_invitations
- traefik.http.routers.${SWARM_STACK_NAME}_invitations_swagger.rule=${DEPLOYMENT_FQDNS_CAPTURE_INVITATIONS} && PathPrefix(`/dev/doc`)
- traefik.http.routers.${SWARM_STACK_NAME}_invitations_swagger.rule=(${DEPLOYMENT_FQDNS_CAPTURE_INVITATIONS}) && PathPrefix(`/dev/doc`)
- traefik.http.routers.${SWARM_STACK_NAME}_invitations_swagger.entrypoints=http
- traefik.http.routers.${SWARM_STACK_NAME}_invitations_swagger.priority=1
- traefik.http.middlewares.${SWARM_STACK_NAME_NO_HYPHEN}_invitations_swagger_auth.basicauth.users=${TRAEFIK_USER}:${TRAEFIK_PASSWORD}
- traefik.http.routers.${SWARM_STACK_NAME}_invitations_swagger.middlewares=${SWARM_STACK_NAME_NO_HYPHEN}_invitations_swagger_auth, ${SWARM_STACK_NAME_NO_HYPHEN}_sslheader
placement:
Expand Down

0 comments on commit 9a0b212

Please sign in to comment.