-
-
Notifications
You must be signed in to change notification settings - Fork 246
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
certbot: Clean up to use --standalone
rather than waiting for nginx to start
#142
Comments
With SSL_CERTIFICATE_GENERATION: "certbot" when I access our zulip server at the given domain, it still uses the self-signed certificate. Additionally, if I run docker-compose restart the zulip container is stuck at an interactive certbot promt as follows:
|
I had to run ./sbin/certbot-deploy-hook inside the Zulip container to get it to work |
Using standalone mode isn’t a good plan because it would reintroduce zulip/zulip#20593. (For those reporting that current certbot support is broken, that’s a different issue: #381.) |
The initial certbot implementation in #139 is super handy, but it has a somewhat awkward mechanism where we first generate a self-signed cert (so
nginx
will start), and then boot the machine (running the certbot job in the background), and the certbot job waits fornginx
to start, and then runs certbot to create the cert.It would be cleaner to e.g. run certbot for this purpose with
certbot --standalone
(rather than thenginx
mode) before we've startednginx
(which happens indirectly through thesupervisord
startup); that would eliminate the need for both the temporary self-signed certificate as well as the run-in-the-background messyness.The text was updated successfully, but these errors were encountered: