🔧 Added static directory in config
This commit is contained in:
parent
92b983f913
commit
43126b3d92
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue