diff --git a/deploy/docker-compose/docker-compose.yml b/deploy/docker-compose/compose.yml similarity index 58% rename from deploy/docker-compose/docker-compose.yml rename to deploy/docker-compose/compose.yml index e74c502..a09ba1c 100644 --- a/deploy/docker-compose/docker-compose.yml +++ b/deploy/docker-compose/compose.yml @@ -3,10 +3,10 @@ services: container_name: beacon-dns image: ghcr.io/st3v3nmw/beacon-dns:latest volumes: - - ./config:/home/${USER}/beacon + - /home/${USER}/beacon-dns:/data environment: - - BEACON_CONFIG_FILE=/home/${USER}/beacon/config.yml - - BEACON_DATA_DIR=/home/${USER}/beacon + - BEACON_CONFIG_FILE=/data/config.yml + - BEACON_DATA_DIR=/data restart: unless-stopped privileged: true network_mode: host diff --git a/internal/config/config.go b/internal/config/config.go index 90e4aef..9809082 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -2,7 +2,6 @@ package config import ( "fmt" - "net" "os" "slices" "strconv" @@ -189,7 +188,7 @@ type APIConfig struct { type ClientLookupConfig struct { Upstream string `yaml:"upstream" json:"upstream"` Method types.ClientLookupMethod `yaml:"method" json:"method"` - Clients map[string]net.IP `yaml:"clients" json:"clients,omitempty"` + Clients map[string]string `yaml:"clients" json:"clients,omitempty"` } type GroupConfig struct {