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
Can't renew certificate #102
Comments
same error here :( |
Got the same error today and the solution proposed by @larose worked! |
Hopefully I can dig in and try to fix this problem this week/weekend. Unless anyone can submit a PR. |
To be a little bit more specific than above, the workaround was applied to the |
The problem is that if This can be fixed by using:
|
This has been fixed in 0.8.2 dokku/dokku#2535 |
@ebeigarts How can I update without broken all ? |
@inchr if you can't upgrade, you can use the 3 commands in my previous comment |
Closing. This is fixed as of dokku 0.8.2. If you can't upgrade Dokku, then you should purchase an SSL cert and use that instead. |
It looks like it is no longer possible to renew a certificate with the default nginx config file generated from Dokku:
The issue is that GET
http://<domain>/.well-known/acme-challenge/<token>
is redirected tohttps://<domain>/.well-known/acme-challenge/<token>
(http -> https).This is caused by the default nginx config file that no longer includes
/home/dokku/<app>/nginx.conf.d/*.conf
when listening on port 80 (https://github.com/dokku/dokku/blob/618395df5ea3f3938c3489d7d8fc89327db6bf32/plugins/nginx-vhosts/templates/nginx.conf.sigil#L7-L38), so/home/dokku/<app>/nginx.conf.d/letsencrypt.conf
is ignored.Here is my generated nginx config file:
Workaround
In file
/home/dokku/<app>/nginx.conf
, replace:with:
restart nginx:
and renew the certificate:
The text was updated successfully, but these errors were encountered: