Skip to content

feat: add certmagic-based automatic TLS support#5874

Open
aohanhongzhi wants to merge 1 commit intofilebrowser:masterfrom
aohanhongzhi:feat/certmagic-auto-ssl
Open

feat: add certmagic-based automatic TLS support#5874
aohanhongzhi wants to merge 1 commit intofilebrowser:masterfrom
aohanhongzhi:feat/certmagic-auto-ssl

Conversation

@aohanhongzhi
Copy link
Copy Markdown

 1	## Summary
 2	- add optional `certmagic.*` runtime flags so filebrowser can automatically issue and renew TLS certificates for configured domains
 3	- integrate a new CertMagic listener path that is mutually exclusive with `--cert/--key` and `--socket`, while preserving existing static TLS and HTTP behavior
 4	- keep TLS minimum version at 1.2 and expose CA/email/storage/agreement knobs for production and staging ACME setups
   
 5	## Test plan
 6	- [x] `go test ./cmd/...`
 7	- [ ] Run filebrowser with `--certmagic.domains` on a real public domain and verify certificate issuance/renewal
   
 8	Made with [Cursor](https://cursor.com)

Add an opt-in CertMagic TLS path so filebrowser can provision and renew certificates automatically when domains are provided, while keeping existing static cert/key and plain HTTP behavior unchanged.

Made-with: Cursor
@aohanhongzhi aohanhongzhi requested a review from a team as a code owner March 30, 2026 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant