-
Notifications
You must be signed in to change notification settings - Fork 27
Description
Hi.
I configured 4 certificates in docker-flow-letsencrypt env variable. Everything went fine, certs were created, proxy was reconfigured. Nice.
But when I enter my site which doesn't have certificate HAproxy returns first certificate from it's list, and it's list is generated alphabetically.
Like that (of course cert-di is real domain):
frontend services
bind *:80
bind *:443 ssl crt /certs/cert-di.combined.pem crt /certs/cert-dr.combined.pem crt /certs/cert-op.combined.pem crt /certs/cert-os.combined.pem
mode httpProblem is: my very simple infrastructure is hosted under domain cert-op so I want to expose this certificate (even it'll fail in every browser) as default and not leak cert-di which is one site from some user.
This could be achieved in easy mapping (order of domains like I have in this example):
DOMAIN_1→/certs/01-cert-op.combined.pemDOMAIN_2→/certs/02-cert-di.combined.pemDOMAIN_3→/certs/03-cert-os.combined.pemDOMAIN_4→/certs/04-cert-dr.combined.pem
With this, docker-flow-proxy will generate config in different order, and cert-op will be exposed as default certificate.