generate basic caddy.json with empty http and https servers

This commit is contained in:
Pavel Sviderski
2024-12-18 22:14:58 +10:00
parent bfbcec34e8
commit 7556f8cb12
6 changed files with 393 additions and 26 deletions
+1 -1
View File
@@ -122,7 +122,7 @@ func (c *Config) SetDefaults() (*Config, error) {
}
if cfg.CaddyfilePath == "" {
cfg.CaddyfilePath = filepath.Join(cfg.DataDir, "caddy", "Caddyfile")
cfg.CaddyfilePath = filepath.Join(cfg.DataDir, "caddy", "caddy.json")
}
return &cfg, nil