Use existing certificate even when a container is down, instead of a self-signed certificate #1061
Unanswered
Exagone313
asked this question in
Q&A
Replies: 1 comment 6 replies
-
I have read the code in I have created the issue #1062. I'm also considering an alternative, by doing both steps:
|
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
When a container for a domain is down, nginx-proxy serves a 503 error with a self-signed certificate for the domain name
letsencrypt-nginx-proxy-companion
.Since there is an existing certificate that is used when the container is up, nginx-proxy should be able to use it, to avoid displaying certificate errors to the clients during a deployment.
How can I do that?
I have considered creating a standalone certificate for all the needed domain names, but I haven't found instructions on how to use this certificate by default on any hosts even when containers are down.
Comparatively, when using a manually crafted nginx configuration (without nginx-proxy and acme-companon), the
server
blocks won't be removed and nginx will keep using the configured certificates for all the hosts even when the upstream service is down.Thanks.
Beta Was this translation helpful? Give feedback.
All reactions