mirror of https://github.com/go-gitea/gitea.git
Merge 8a90b9b421
into 58a03e9fad
This commit is contained in:
commit
6e7dae3e35
|
@ -260,6 +260,7 @@ RUN_USER = ; git
|
|||
;;
|
||||
;; ACME live directory (not to be confused with ACME directory URL: ACME_URL)
|
||||
;; (Refer to caddy's ACME manager https://github.com/caddyserver/certmagic)
|
||||
;; Relative paths will be resolved to `${AppDataPath}/${AcmeLiveDirectory}`
|
||||
;ACME_DIRECTORY = https
|
||||
;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
|
|
@ -205,6 +205,9 @@ func loadServerFrom(rootCfg ConfigProvider) {
|
|||
deprecatedSetting(rootCfg, "server", "LETSENCRYPT_DIRECTORY", "server", "ACME_DIRECTORY", "v1.19.0")
|
||||
AcmeLiveDirectory = sec.Key("LETSENCRYPT_DIRECTORY").MustString("https")
|
||||
}
|
||||
if !filepath.IsAbs(AcmeLiveDirectory) {
|
||||
AcmeLiveDirectory = filepath.Join(AppDataPath, AcmeLiveDirectory)
|
||||
}
|
||||
|
||||
if sec.HasKey("ACME_EMAIL") {
|
||||
AcmeEmail = sec.Key("ACME_EMAIL").MustString("")
|
||||
|
|
Loading…
Reference in New Issue