Skip to content

Commit

Permalink
fix email route definition
Browse files Browse the repository at this point in the history
  • Loading branch information
rikukissa committed Jan 17, 2024
1 parent ba89a6b commit 2c90955
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions infrastructure/docker-compose.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -580,9 +580,9 @@ services:
- 'traefik.http.middlewares.countryconfig.headers.stspreload=true'
# This is an invalid IP range, effectively blocking all IPs from accessing /email path.
# It's only meant to be accessed from the internal docker network.
- 'traefik.http.middlewares.block-all.ipwhitelist.sourcerange=255.255.255.255'
- 'traefik.http.routers.email-blocker.rule=Path(`/email`)'
- 'traefik.http.routers.email-blocker.middlewares=block-all'
- 'traefik.http.middlewares.block-email.ipwhitelist.sourcerange=255.255.255.255'
- 'traefik.http.routers.block-email.rule=Host(`countryconfig.{{hostname}}`) && Path(`/email`)'
- 'traefik.http.routers.block-email.middlewares=block-email'
replicas: 1
environment:
- MONGO_URL=mongodb://mongo1/user-mgnt?replicaSet=rs0
Expand Down

0 comments on commit 2c90955

Please sign in to comment.