fix: properly initialize tlsStoragePath in config load

This commit is contained in:
2026-01-24 17:55:26 +07:00
parent 1ed9f3631f
commit 09aa92a0ae
2 changed files with 21 additions and 17 deletions
+2
View File
@@ -57,6 +57,7 @@ func parse() (*config, error) {
tlsEnabled := getenvBool("TLS_ENABLED", false)
tlsRedirect := tlsEnabled && getenvBool("TLS_REDIRECT", false)
tlsStoragePath := getenv("TLS_STORAGE_PATH", "certs/tls/")
acmeEmail := getenv("ACME_EMAIL", "admin@"+domain)
acmeStaging := getenvBool("ACME_STAGING", false)
@@ -92,6 +93,7 @@ func parse() (*config, error) {
keyLoc: keyLoc,
tlsEnabled: tlsEnabled,
tlsRedirect: tlsRedirect,
tlsStoragePath: tlsStoragePath,
acmeEmail: acmeEmail,
cfAPIToken: cfToken,
acmeStaging: acmeStaging,