-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Set default ACME_DIRECTORY for Docker installs to somewhere in a volume #35851
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
base: main
Are you sure you want to change the base?
Conversation
With the previous default, ACME certificates and accounts would be lost upon restarting the container because only the /data folder is bound to a (writable) volume in the suggested docker-compose.yml from the docs.
|
Like #35854 (review) and our discord discussion, I think we need to have a complete solution but not add more patches. The directory problem is a general problem for all users, but not only Docker users. There are already enough legacy problems, if we keep adding patches, after many years the new users would still complain: why that decision was made. |
|
I understand not wanting to merge #35854, but this one is a brutal issue that affects only Docker users, and I think should be merged, even you think there's a long-term better solution. |
All users are affected. It shouldn't use WORK_PATH, see the discord discussion: if the Gitea binary is put into |
|
But it's not using Also, do you have an issue number tracking the work on the 'proper' breaking change? |
It is more complicated than that. To "guess" a work path, see
No from my side at the moment. |
|
Then I'm going to keep this PR open because exceeding the Let's Encrypt rate-limit just from restarting Gitea a few times is a stupid problem to have. |
|
Actually.. would the proper fix be a breaking change? If you have ACME enabled it should just pull new certs into (now proper) directory. If you don't there's no impact and if you used a custom dir the fixed default won't apply? |
|
Hmm, good point. It would require reissuing new certificates for existing instances (with default |
|
OK, let me break the legacy buggy behavior ..... will make some changes in this PR |
|
No need to reuse my branch/PR haha |
I just think we don't need to open too many PRs. If you'd like to close this one, feel free to close it, and then I will open a new one. |
With the previous default, ACME certificates and accounts would be lost upon restarting the container because only the /data folder is bound to a (writable) volume in the suggested docker-compose.yml from the docs.
Closes https://gitea.com/gitea/docs/issues/292