Compare commits

..

4 Commits

Author SHA1 Message Date
techknowlogick 0bb6d42dd9 Merge branch 'main' into copilot/add-acme-profile-settings 2026-09-21 12:29:25 -04:00
copilot-swe-agent[bot] e9857b5746 Apply remaining changes
Co-authored-by: techknowlogick <164197+techknowlogick@users.noreply.github.com>
2026-09-21 16:17:15 +00:00
copilot-swe-agent[bot] 30069d248c enhance: add ACME profile setting
Assisted-by: Copilot:gpt-5.6-terra

Co-authored-by: techknowlogick <164197+techknowlogick@users.noreply.github.com>
2026-09-21 15:47:14 +00:00
copilot-swe-agent[bot] ad68a56950 Initial plan 2026-09-21 15:40:50 +00:00
3 changed files with 6 additions and 0 deletions
+1
View File
@@ -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,
+3
View File
@@ -264,6 +264,9 @@
;; Can be left blank to initialize at first run and use the cached value
;ACME_EMAIL =
;;
;; ACME profile to request from the CA (e.g. "shortlived" for raw-IP certificates)
;ACME_PROFILE =
;;
;; ACME live directory (not to be confused with ACME directory URL: ACME_URL)
;; (Refer to caddy's ACME manager https://github.com/caddyserver/certmagic)
;ACME_DIRECTORY = https
+2
View File
@@ -100,6 +100,7 @@ var (
AcmeLiveDirectory string
AcmeEmail string
AcmeURL string
AcmeProfile string
AcmeCARoot string
SSLMinimumVersion string
SSLMaximumVersion string
@@ -142,6 +143,7 @@ func loadServerFrom(rootCfg ConfigProvider) {
Protocol = HTTPS
if EnableAcme {
AcmeURL = sec.Key("ACME_URL").MustString("")
AcmeProfile = sec.Key("ACME_PROFILE").MustString("")
AcmeCARoot = sec.Key("ACME_CA_ROOT").MustString("")
if sec.HasKey("ACME_ACCEPTTOS") {