Skip to content

Commit

Permalink
Add filter for hostname to allow multiple deploys per VM
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-c committed May 2, 2024
1 parent 2fb4934 commit 9228d7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion base/freestanding/femr/docker-compose.auth-proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ services:
- ../../../prod/freestanding/femr/auth-proxy.env
labels:
- traefik.enable=true
- traefik.http.routers.auth-proxy-${COMPOSE_PROJECT_NAME}.rule=Host(`auth-proxy.${BASE_DOMAIN:-localtest.me}`) || PathPrefix(`/oauth2`)
# TODO fine-tune to catch any requests coming from this docker-compose project
- traefik.http.routers.auth-proxy-${COMPOSE_PROJECT_NAME}.rule=Host(`auth-proxy.${BASE_DOMAIN:-localtest.me}`) || (Host(`fhir-auth.${BASE_DOMAIN:-localtest.me}`) && PathPrefix(`/oauth2`))
- traefik.http.routers.auth-proxy-${COMPOSE_PROJECT_NAME}.entrypoints=websecure
- traefik.http.routers.auth-proxy-${COMPOSE_PROJECT_NAME}.tls=true
- traefik.http.routers.auth-proxy-${COMPOSE_PROJECT_NAME}.tls.certresolver=letsencrypt
Expand Down

0 comments on commit 9228d7b

Please sign in to comment.