Feat: Add ACME certificate automation (Let's Encrypt + full DNS-01 support via acme.sh) #52
Reference in New Issue
Block a user
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?
Problem
Sofarr currently uses a bundled self-signed snakeoil certificate for its native HTTPS support (added in commit
da0898f). While this provides out-of-the-box HTTPS without an external reverse proxy, self-signed certificates are:Users who want proper trusted certificates are forced into workarounds (manual Let's Encrypt, custom cert mounting, or adding nginx/Caddy/Traefik), which undermines Sofarr’s “simple Docker deployment, no external web server required” design goal.
Proposed Solution
Add built-in ACME certificate automation with automatic issuance and renewal.
Key Requirements:
.env+ Docker workflow)Suggested Environment Variables
Implementation Recommendation (to keep it lightweight)
acme.sh --issue --dns $PROVIDER ...when neededfullchain.pem+privkey.pemin the expectedcerts/locationhttpsServer.setSecureContext()or file watcher)/app/certs).env.sampleWhy acme.sh?
It exactly matches the request (“essentially all the methods available in acme.sh”) and is the lightest, most battle-tested option with the broadest DNS provider coverage.
Benefits