Change the documentation to suggest certbot nginx install method #747
Labels
No labels
approved, awaiting change
bug
configuration
documentation
duplicate
enhancement
extremely low priority
feature request
Fix it yourself
help wanted
invalid
mastodon_api
needs docs
needs tests
not a bug
planned
pleroma_api
privacy
question
static_fe
triage
wontfix
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: AkkomaGang/akkoma#747
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The idea
Alter the nginx + certbot install section in https://docs.akkoma.dev/stable/installation/debian_based_en/ to use the nginx certbot plugin instead of standalone.
The reasoning
Currently, the guide prescribes an odd (and confusing) mix of standalone and webroot certbot certificate retrieval methods. The akkoma nginx config file also has a commented-out section for the webroot install method.
The way the guide suggests installing, would mean that certbot would not properly refresh the certificate, since it does not know or understand it was installed via nginx. This means the certificate will expire, and any admin who does not have experience with this would have to figure out how to manually fix their instance, while it is down.
Instead, i suggest simply adding the nginx certbot plugin, as it automatically configures the right config for certificate retrieval, and properly installs it, in the background, and will gracefully handle nginx not being started or being down (i've seen the code).
Have you searched for this feature request?
Should also say that the way the install guide recommends things, will inevitably break, since it recommends installing nginx right before running the standalone certbot certonly command.
Nginx is started upon install, and so it will result in a confusing error like the following:
i believe this depends on the distro, but mentioning to stop any possibly already running instances would be good indeed
I think only Debian and Ubuntu starts services on install, other distros like Fedora and Arch do not.
In any case, I think certbot will restart/reload nginx after installing the certs and modifying the nginx config.
fixed via #752