-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation request #764
Comments
I'm looking at the exact same issue at the moment. What
However dnsrobocert produces:
So I can see inside the dnsrobocert container a structure like As far as I can tell there is no way for nginx-proxy to read certs from other structure/filenames, or for dnsrobocert to create them in a different layout. Perhaps some post-hook for certbot to copy/mangles the certs into a format that works for nginx-proxy would be the way forward... |
Use a hook like the following:
nginx-proxy cert directory has to be added to dnsrobocert as a volume and can be configured with the environment variable NGINX_CERT_DIR |
The above solution is not working with iOS and android clients.
|
Here's a (slightly more verbose) alternative to @sebsoftware suggestions, it works well with Nginx containers. If anyone else ends up here while looking for a solution: Script to deploy certificates generated with DNSroboCert to nginx-proxy |
Hi,
I'd like to use DNSrobocert with nginx-proxy. I am successfully (with a few hacks) running dnsrobocert (as long as the container doesn't die).
Please can you tell me how to get the certs working properly with nginx-proxy as I'm not sure how the certbot subdirectories etc interact with it. I'm currently requesting DNS based letsencrypt certs for two subdomains eg. bt.lab.fred.co.uk and rt.lab.fred.co.uk
Thanks, and sorry for the vague question.
nginx-proxy:
image: nginxproxy/nginx-proxy
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./volumes/letsencrypt:/etc/nginx/certs
dnsrobocert:
image: adferrand/dnsrobocert
container_name: dnsrobocert
volumes:
- ./volumes/letsencrypt:/etc/letsencrypt
- ./volumes/dnsrobocert:/etc/dnsrobocert
environment:
- VERSION=latest
restart: always
networks:
main:
The text was updated successfully, but these errors were encountered: