forked from forgejo/forgejo
Add default storage configurations (#12813)
Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: zeripath <art27@cantab.net>
This commit is contained in:
parent
4c6ac08182
commit
3878e985b6
19 changed files with 459 additions and 185 deletions
|
@ -691,8 +691,6 @@ func NewContext() {
|
|||
SSH.CreateAuthorizedKeysFile = sec.Key("SSH_CREATE_AUTHORIZED_KEYS_FILE").MustBool(true)
|
||||
SSH.ExposeAnonymous = sec.Key("SSH_EXPOSE_ANONYMOUS").MustBool(false)
|
||||
|
||||
newLFSService()
|
||||
|
||||
if err = Cfg.Section("oauth2").MapTo(&OAuth2); err != nil {
|
||||
log.Fatal("Failed to OAuth2 settings: %v", err)
|
||||
return
|
||||
|
@ -761,7 +759,9 @@ func NewContext() {
|
|||
}
|
||||
}
|
||||
|
||||
newStorageService()
|
||||
newAttachmentService()
|
||||
newLFSService()
|
||||
|
||||
timeFormatKey := Cfg.Section("time").Key("FORMAT").MustString("")
|
||||
if timeFormatKey != "" {
|
||||
|
@ -1017,7 +1017,6 @@ func NewServices() {
|
|||
InitDBConfig()
|
||||
newService()
|
||||
NewLogServices(false)
|
||||
ensureLFSDirectory()
|
||||
newCacheService()
|
||||
newSessionService()
|
||||
newCORSService()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue