Skip to content
This repository has been archived by the owner on Oct 24, 2022. It is now read-only.

Commit

Permalink
HostSNI values
Browse files Browse the repository at this point in the history
  • Loading branch information
kanzitelli committed Dec 19, 2021
1 parent bd3ea2e commit 4f78647
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ services:
labels:
- "traefik.enable=true"
# routers
- "traefik.tcp.routers.postgres.rule=HostSNI(`postgres.${DOMAIN_NAME}`)" # was *
- "traefik.tcp.routers.postgres.rule=HostSNI(`*`)"
- "traefik.tcp.routers.postgres.entryPoints=postgres"
- "traefik.tcp.routers.postgres.service=postgres"
# services (needed for TCP)
- "traefik.tcp.services.postgres.loadbalancer.server.port=5432"
# tls
- "traefik.http.routers.postgres.tls.certresolver=mydnschallenge"
- "traefik.http.routers.postgres.tls.domains[0].main=${DOMAIN_NAME}"
- "traefik.http.routers.postgres.tls.domains[0].sans=postgres.${DOMAIN_NAME}"
- "traefik.http.routers.postgres.tls.domains[0].sans=db.${DOMAIN_NAME}"

redis:
image: bitnami/redis:latest
Expand All @@ -63,12 +63,12 @@ services:
labels:
- "traefik.enable=true"
# routers
- "traefik.tcp.routers.redis.rule=HostSNI(`redis.${DOMAIN_NAME}`)" # was *
- "traefik.tcp.routers.redis.rule=HostSNI(`*`)" # was *
- "traefik.tcp.routers.redis.entryPoints=redis"
- "traefik.tcp.routers.redis.service=redis"
# services (needed for TCP)
- "traefik.tcp.services.redis.loadbalancer.server.port=6379"
# tls
- "traefik.http.routers.redis.tls.certresolver=mydnschallenge"
- "traefik.http.routers.redis.tls.domains[0].main=${DOMAIN_NAME}"
- "traefik.http.routers.redis.tls.domains[0].sans=redis.${DOMAIN_NAME}"
- "traefik.http.routers.redis.tls.domains[0].sans=db.${DOMAIN_NAME}"

0 comments on commit 4f78647

Please sign in to comment.