1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-10-18 09:00:11 +00:00

config: MustSetValue all MustInts

so stuff like the previous commit's issue doesn't happen again.
This commit is contained in:
Harvey Tindall 2024-09-04 21:15:19 +01:00
parent 2f4e68969a
commit 941367f77b
Signed by: hrfee
GPG Key ID: BBC65952848FB1A2

View File

@ -97,6 +97,7 @@ func (app *appContext) loadConfig() error {
app.MustSetValue("smtp", "hello_hostname", "localhost")
app.MustSetValue("smtp", "cert_validation", "true")
app.MustSetValue("smtp", "auth_type", "4")
app.MustSetValue("smtp", "port", "465")
app.MustSetValue("activity_log", "keep_n_records", "1000")
app.MustSetValue("activity_log", "delete_after_days", "90")
@ -151,6 +152,9 @@ func (app *appContext) loadConfig() error {
app.MustSetValue("advanced", "auth_retry_count", "6")
app.MustSetValue("advanced", "auth_retry_gap", "10")
app.MustSetValue("ui", "port", "8056")
app.MustSetValue("advanced", "tls_port", "8057")
pwrMethods := []string{"allow_pwr_username", "allow_pwr_email", "allow_pwr_contact_method"}
allDisabled := true
for _, v := range pwrMethods {