diff options
| author | lost+skunk <[email protected]> | 2024-07-06 20:06:04 +0300 |
|---|---|---|
| committer | lost+skunk <[email protected]> | 2024-07-06 20:06:04 +0300 |
| commit | ff4f1a2422b3e02917af1f1786ff5b3ac09565ef (patch) | |
| tree | 7da4260b98b23be4852d6196b07d1cfbdc115034 /app/config.go | |
| parent | 7f1ab1b73d1e7a0d8a730354bbc3136c5584fea3 (diff) | |
| download | skunky-art-ff4f1a2422b3e02917af1f1786ff5b3ac09565ef.tar.gz skunky-art-ff4f1a2422b3e02917af1f1786ff5b3ac09565ef.tar.bz2 skunky-art-ff4f1a2422b3e02917af1f1786ff5b3ac09565ef.zip | |
Реки и копирование темплейтов в озу
Diffstat (limited to 'app/config.go')
| -rw-r--r-- | app/config.go | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/app/config.go b/app/config.go index 1df6aaf..18cea29 100644 --- a/app/config.go +++ b/app/config.go @@ -7,19 +7,21 @@ import ( ) type cache_config struct { - Enabled bool - Path string - MaxSize int64 `json:"max-size"` - Lifetime int64 + Enabled bool + Path string + MaxSize int64 `json:"max-size"` + Lifetime int64 + UpdateInterval int64 `json:"update-interval"` } type config struct { - cfg string - Listen string - BasePath string `json:"base-path"` - Cache cache_config - Proxy, Nsfw bool - WixmpProxy string `json:"wixmp-proxy"` + cfg string + Listen string + BasePath string `json:"base-path"` + Cache cache_config + Proxy, Nsfw bool + WixmpProxy string `json:"wixmp-proxy"` + TemplatesDir string `json:"templates-dir"` } var CFG = config{ @@ -27,11 +29,13 @@ var CFG = config{ Listen: "127.0.0.1:3003", BasePath: "/", Cache: cache_config{ - Enabled: true, - Path: "cache", + Enabled: true, + Path: "cache", + UpdateInterval: 1, }, - Proxy: true, - Nsfw: true, + TemplatesDir: "html", + Proxy: true, + Nsfw: true, } func ExecuteConfig() { |
