feat: complete remediation phase 3
Some checks failed
Automated Container Build / build-and-push (push) Failing after 15s

This commit is contained in:
Elijah 2026-05-26 14:23:50 -07:00
parent 0221e277a6
commit 6772ba8c43
10 changed files with 63 additions and 20 deletions

View file

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