From 060a68b6017a807e04e118642257d51bea4ab9c0 Mon Sep 17 00:00:00 2001 From: Paul Payne Date: Thu, 9 Jul 2026 03:39:51 +0000 Subject: [PATCH] fix: Use production config file paths as defaults The default paths for dnsmasq and nftables config files should match the existing production layout (wild-cloud.conf, wild-cloud.nft) so Wild Central works as a drop-in when reading from the production data directory. These can be overridden via env vars for fresh installs. Co-Authored-By: Claude Opus 4.6 (1M context) --- internal/api/v1/handlers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/api/v1/handlers.go b/internal/api/v1/handlers.go index 7e32e62..f9c1bf4 100644 --- a/internal/api/v1/handlers.go +++ b/internal/api/v1/handlers.go @@ -58,9 +58,9 @@ func NewAPI(dataDir, version string, allowedOrigins []string) (*API, error) { } // Determine config paths from env or defaults - dnsmasqConfigPath := envOrDefault("WILD_CENTRAL_DNSMASQ_CONFIG_PATH", "/etc/dnsmasq.d/wild-central.conf") + dnsmasqConfigPath := envOrDefault("WILD_CENTRAL_DNSMASQ_CONFIG_PATH", "/etc/dnsmasq.d/wild-cloud.conf") haproxyConfigPath := envOrDefault("WILD_CENTRAL_HAPROXY_CONFIG_PATH", "/etc/haproxy/haproxy.cfg") - nftablesRulesPath := envOrDefault("WILD_CENTRAL_NFTABLES_RULES_PATH", "/etc/nftables.d/wild-central.nft") + nftablesRulesPath := envOrDefault("WILD_CENTRAL_NFTABLES_RULES_PATH", "/etc/nftables.d/wild-cloud.nft") vpnConfigPath := envOrDefault("WILD_CENTRAL_VPN_CONFIG_PATH", "/etc/wireguard/wg0.conf") sseManager := sse.NewManager()