feat: complete remediation phase 3
Some checks failed
Automated Container Build / build-and-push (push) Failing after 15s
Some checks failed
Automated Container Build / build-and-push (push) Failing after 15s
This commit is contained in:
parent
0221e277a6
commit
6772ba8c43
10 changed files with 63 additions and 20 deletions
|
|
@ -1,6 +1,7 @@
|
|||
package config
|
||||
|
||||
import (
|
||||
"log"
|
||||
"os"
|
||||
"strconv"
|
||||
)
|
||||
|
|
@ -49,6 +50,11 @@ func Load() *Config {
|
|||
cfg.VersionsDir = cfg.StorageDir + "/.versions"
|
||||
cfg.BackupDir = cfg.StorageDir + "/.backups"
|
||||
|
||||
if cfg.OnlyOfficeJWT == "" {
|
||||
log.Println("WARNING: ONLYOFFICE_JWT_SECRET not set \u2014 Document Server requests will NOT be authenticated.")
|
||||
log.Println(" Anyone with network access to the Document Server can open/edit documents.")
|
||||
}
|
||||
|
||||
return cfg
|
||||
}
|
||||
|
||||
|
|
|
|||
Reference in a new issue