Update app.ini.sample. Fix improper error message
This commit is contained in:
parent
4cec5ff078
commit
423d98a77f
|
@ -249,6 +249,10 @@ MIN_PASSWORD_LENGTH = 6
|
||||||
IMPORT_LOCAL_PATHS = false
|
IMPORT_LOCAL_PATHS = false
|
||||||
; Prevent all users (including admin) from creating custom git hooks
|
; Prevent all users (including admin) from creating custom git hooks
|
||||||
DISABLE_GIT_HOOKS = false
|
DISABLE_GIT_HOOKS = false
|
||||||
|
; Store INTERNAL_TOKEN in a separate file. Will be stored in this config if not set
|
||||||
|
; formats allowed:
|
||||||
|
; - file:/path/to/my/internal_token
|
||||||
|
;INTERNAL_TOKEN_URI =
|
||||||
|
|
||||||
[openid]
|
[openid]
|
||||||
;
|
;
|
||||||
|
|
|
@ -1206,7 +1206,7 @@ func loadOrGenerateInternalToken(sec *ini.Section) string {
|
||||||
log.Fatal(4, "Failed to create '%s': %v", CustomConf, err)
|
log.Fatal(4, "Failed to create '%s': %v", CustomConf, err)
|
||||||
}
|
}
|
||||||
if err := cfgSave.SaveTo(CustomConf); err != nil {
|
if err := cfgSave.SaveTo(CustomConf); err != nil {
|
||||||
log.Fatal(4, "Error saving generated JWT Secret to custom config: %v", err)
|
log.Fatal(4, "Error saving generated INTERNAL_TOKEN to custom config: %v", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return token
|
return token
|
||||||
|
|
Loading…
Reference in New Issue
Block a user