-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
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
security.acme timeout because services.nginx takes time to start #81842
Comments
Making a note that |
Thank you for the issue and reproducer. I'll have a closer look at this today |
@datafoo what exactly do you mean by "timeout" here by the way. could you provide some journal logs of this failure? I can try reproduce when I'm home, but maybe the logs are enough to understand what is going wrong |
I mean "Timeout during connect (likely firewall problem)" in the logs below. Note that the hostname, email and domain have been redacted. Also notice the long time between
nginx was not started when the Let's Encrypt tried to retrieve the challenge:
|
I'm scared that won't work. The lack of
It's all a bit mind-boggling and the dependencies are a bit complicated. I wish it was a bit more simpler too. However; isn't what we want here |
Absolutely, that is what I meant but I wrote it wrongly. |
Should we go for the solution proposed? |
Yep. I have a PR in the works on my machine. I'll try to get it out this week |
This fixes NixOS#81842 We should probably also fix this for Apache, which recently also learned to use ACME.
This fixes NixOS#81842 We should probably also fix this for Apache, which recently also learned to use ACME.
I use
services.nginx
with the optionservices.nginx.virtualHosts.<name>.enableACME
enabled. I also have a web serversystemd
service that specifies:Because my web server is a bit long to start, the
security.acme
timeout and its systemd unit fails.To Reproduce
Use the following example module:
Expected behavior
The acme systemd units created by
services.nginx
should wait that nginx is started before starting.Metadata
Maintainer information:
The text was updated successfully, but these errors were encountered: