🔧 Added static directory in config

This commit is contained in:
Maxim Lebedev 2023-11-13 07:12:50 +06:00
parent 92b983f913
commit 43126b3d92
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
1 changed files with 2 additions and 0 deletions

View File

@ -11,6 +11,7 @@ type Config struct {
ContentDir string `env:"CONTENT_DIR" envDefault:"content/"`
Host string `env:"HOST" envDefault:"0.0.0.0"`
ThemeDir string `env:"THEME_DIR" envDefault:"theme/"`
StaticDir string `env:"STATIC_DIR" envDefault:"static/"`
Port uint16 `env:"PORT" envDefault:"3000"`
}
@ -21,6 +22,7 @@ func TestConfig(tb testing.TB) *Config {
ContentDir: "testdata/content/",
Host: "0.0.0.0",
ThemeDir: "testdata/theme/",
StaticDir: "testdata/static/",
Port: 3000,
}
}