generate basic caddy.json with empty http and https servers

This commit is contained in:
Pavel Sviderski committed 2024-12-18 22:14:58 +10:00
1 parent bfbcec34e8
commit 7556f8cb12
6 files changed
+393 -26

No files matched your search

+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