mirror of
https://github.com/go-gitea/gitea.git
synced 2026-09-24 21:53:39 +09:00
enhance(acme): add configurable ACME profile (#39375)
Adds server-side ACME profile configuration so operators can select a non-default ACME profile. This covers issuers such as Let's Encrypt where raw-IP certificate issuance requires the `shortlived` profile. Fixes: #39374 Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: techknowlogick <164197+techknowlogick@users.noreply.github.com> Co-authored-by: techknowlogick <techknowlogick@gitea.com> Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
co-authored by
copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
techknowlogick
techknowlogick
silverwind
parent
defc9d5ca3
commit
484981fd74
@@ -83,6 +83,7 @@ func runACME(listenAddr string, m http.Handler) error {
|
||||
TrustedRoots: certPool,
|
||||
Email: setting.AcmeEmail,
|
||||
Agreed: setting.AcmeTOS,
|
||||
Profile: setting.AcmeProfile,
|
||||
DisableHTTPChallenge: !enableHTTPChallenge,
|
||||
DisableTLSALPNChallenge: !enableTLSALPNChallenge,
|
||||
ListenHost: setting.HTTPAddr,
|
||||
|
||||
Reference in New Issue
Block a user