config: MustSetValue all MustInts

so stuff like the previous commit's issue doesn't happen again.
main
Harvey Tindall 3 months ago
parent 2f4e68969a
commit 941367f77b
No known key found for this signature in database
GPG Key ID: BBC65952848FB1A2

@ -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 {

Loading…
Cancel
Save