mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-12-22 09:00:10 +00:00
config: MustSetValue all MustInts
so stuff like the previous commit's issue doesn't happen again.
This commit is contained in:
parent
2f4e68969a
commit
941367f77b
@ -97,6 +97,7 @@ func (app *appContext) loadConfig() error {
|
|||||||
app.MustSetValue("smtp", "hello_hostname", "localhost")
|
app.MustSetValue("smtp", "hello_hostname", "localhost")
|
||||||
app.MustSetValue("smtp", "cert_validation", "true")
|
app.MustSetValue("smtp", "cert_validation", "true")
|
||||||
app.MustSetValue("smtp", "auth_type", "4")
|
app.MustSetValue("smtp", "auth_type", "4")
|
||||||
|
app.MustSetValue("smtp", "port", "465")
|
||||||
|
|
||||||
app.MustSetValue("activity_log", "keep_n_records", "1000")
|
app.MustSetValue("activity_log", "keep_n_records", "1000")
|
||||||
app.MustSetValue("activity_log", "delete_after_days", "90")
|
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_count", "6")
|
||||||
app.MustSetValue("advanced", "auth_retry_gap", "10")
|
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"}
|
pwrMethods := []string{"allow_pwr_username", "allow_pwr_email", "allow_pwr_contact_method"}
|
||||||
allDisabled := true
|
allDisabled := true
|
||||||
for _, v := range pwrMethods {
|
for _, v := range pwrMethods {
|
||||||
|
Loading…
Reference in New Issue
Block a user