diff options
| author | lost+skunk <[email protected]> | 2024-09-23 09:38:32 +0300 |
|---|---|---|
| committer | lost+skunk <[email protected]> | 2024-09-23 09:38:32 +0300 |
| commit | 191984b31ef228c4077904a2831a2af593352670 (patch) | |
| tree | 33d8dd464d525ce2ad8c92a749436f1c12442800 /app/config.go | |
| parent | c39399403e031a8c1ad53969770e4261d2c9e7aa (diff) | |
| download | skunky-art-191984b31ef228c4077904a2831a2af593352670.tar.gz skunky-art-191984b31ef228c4077904a2831a2af593352670.tar.bz2 skunky-art-191984b31ef228c4077904a2831a2af593352670.zip | |
v1.3.2v1.3.2
Diffstat (limited to 'app/config.go')
| -rw-r--r-- | app/config.go | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/app/config.go b/app/config.go index 745d2f4..2ba39a9 100644 --- a/app/config.go +++ b/app/config.go @@ -56,13 +56,11 @@ func ExecuteConfig() { if CFG.cfg != "" { f, err := os.ReadFile(CFG.cfg) tryWithExitStatus(err, 1) - tryWithExitStatus(json.Unmarshal(f, &CFG), 1) if CFG.Cache.Enabled && !CFG.Proxy { exit("Incompatible settings detected: cannot use caching media content without proxy", 1) } - static.StaticPath = CFG.StaticPath if CFG.Cache.Enabled { if CFG.Cache.Lifetime != "" { var duration int64 @@ -92,6 +90,13 @@ func ExecuteConfig() { CFG.Cache.MaxSize *= 1024 ^ 2 go InitCacheSystem() } + + About = instanceAbout{ + Proxy: CFG.Proxy, + Nsfw: CFG.Nsfw, + } + + static.StaticPath = CFG.StaticPath devianter.UserAgent = CFG.UserAgent } } |
