diff options
| author | 2025-08-26 00:39:22 +0700 | |
|---|---|---|
| committer | 2025-08-26 00:39:22 +0700 | |
| commit | 5ed2499a1d8806fe78369b5b492d7990218131c9 (patch) | |
| tree | 0a9e0548aa145986b654af81554f16c8cf544c41 /config/config.go | |
| parent | b815b74d7a943d1f71a0ddcf6b343d3958d2b97a (diff) | |
| download | web-5ed2499a1d8806fe78369b5b492d7990218131c9.tar.gz web-5ed2499a1d8806fe78369b5b492d7990218131c9.zip | |
feat: client hash cache
feat: add local config
feat: create a volume for data (for the future)
format: unname unused vars
Diffstat (limited to 'config/config.go')
| -rw-r--r-- | config/config.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/config/config.go b/config/config.go index 8c0321e..fe0ac72 100644 --- a/config/config.go +++ b/config/config.go @@ -13,6 +13,7 @@ type Config struct { BlogPages BlogPagesConfig `json:"BlogPages" yaml:"blogPages" validate:"required"` LocalePath string `json:"LocalePath" yaml:"localePath" validate:"required,filepath"` AvailableLanguages []AvailableLanguageConfig `json:"AvailableLanguages" yaml:"availableLanguages" validate:"required"` + Auth AuthConfig `json:"Auth" yaml:"auth" validate:"required"` } type BlogPagesConfig struct { @@ -39,6 +40,10 @@ type AvailableLanguageConfig struct { LocFile string `json:"LocFile" yaml:"locFile" validate:"required,filepath"` } +type AuthConfig struct { + Salt string `json:"Salt" yaml:"salt" validate:"required"` +} + func LoadConfig(path string, config *Config) error { fileBytes, err := os.ReadFile(path) if err != nil { |