Skip to content

How to access production database? #478

Answered by pleirb
pleirb asked this question in Q&A
Discussion options

You must be logged in to vote

It seems to only work with Traefik 3

You were right, I can make it work with Traefik 3, but I had to make modifications to the service db tags in prod.yaml
For the main domain add:
traefik.tcp.routers.project-16-0-prod-database-0.tls: true
And replace:

traefik.tcp.routers.project-16-0-prod-database-0.rule:
  Host(`domain.com`)

By:

traefik.tcp.routers.project-16-0-prod-database-0.rule:
  HostSNI(`domain.com`)

AND
For subdomains that redirect to the main domain add:
traefik.tcp.routers.project-16-0-prod-database-1.tls: true
And replace:

traefik.tcp.routers.project-16-0-prod-database-1.rule:
  Host(`subdomain1.domain.com`, `subdomain2.domain.com`, `subdomain3.domain.com`, `subdomain4.dom…

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
4 replies
@pedrobaeza
Comment options

@pleirb
Comment options

@pedrobaeza
Comment options

@pleirb
Comment options

Answer selected by pleirb
Comment options

You must be logged in to vote
5 replies
@josep-tecnativa
Comment options

@josep-tecnativa
Comment options

@pleirb
Comment options

@josep-tecnativa
Comment options

@pleirb
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants