- update github actions

- update docker build
- move default database to /app/data (#179)
- move config file location to /app/config
This commit is contained in:
Christoph Haas
2023-10-26 12:42:18 +02:00
parent 6284bc8a01
commit 248518d239
8 changed files with 45 additions and 40 deletions

View File

@@ -87,7 +87,7 @@ func defaultConfig() *Config {
cfg.Database = DatabaseConfig{
Type: "sqlite",
DSN: "sqlite.db",
DSN: "data/sqlite.db",
}
cfg.Web = WebConfig{
@@ -140,7 +140,7 @@ func GetConfig() (*Config, error) {
// override config values from YAML file
cfgFileName := "config.yml"
cfgFileName := "config/config.yml"
if envCfgFileName := os.Getenv("WG_PORTAL_CONFIG"); envCfgFileName != "" {
cfgFileName = envCfgFileName
}