feat: switch gateway container to host network mode and replace host.docker.internal with 127.0.0.1
Change gateway service from bridge networking to host network mode to enable direct access to host network interfaces. Replace host.docker.internal references with 127.0.0.1 in gateway URLs and backend host configuration. Remove port mapping, extra_hosts, and explicit network attachments since host mode provides direct network access.
This commit is contained in:
@@ -16,11 +16,11 @@ DEFAULT_GATEWAY_PUBLIC_KEY=replace-me
|
||||
GATEWAY_BOOTSTRAP_TOKEN=nexavpn-gateway-bootstrap
|
||||
NEXAVPN_GATEWAY_ID=
|
||||
NEXAVPN_GATEWAY_NAME=primary-gateway
|
||||
NEXAVPN_GATEWAY_SYNC_URL=http://host.docker.internal:8080/api/v1/gateway-agent
|
||||
NEXAVPN_GATEWAY_BOOTSTRAP_URL=http://host.docker.internal:8080/api/v1/gateway-agent/bootstrap
|
||||
NEXAVPN_GATEWAY_SYNC_URL=http://127.0.0.1:8080/api/v1/gateway-agent
|
||||
NEXAVPN_GATEWAY_BOOTSTRAP_URL=http://127.0.0.1:8080/api/v1/gateway-agent/bootstrap
|
||||
NEXAVPN_API_TOKEN=
|
||||
NEXAVPN_GATEWAY_PRIVATE_KEY=
|
||||
NEXAVPN_GATEWAY_INTERFACE=wg0
|
||||
NEXAVPN_UPLINK_INTERFACE=eth0
|
||||
NEXAVPN_ENABLE_MASQUERADE=true
|
||||
NEXAVPN_BACKEND_HOST=host.docker.internal
|
||||
NEXAVPN_BACKEND_HOST=127.0.0.1
|
||||
|
||||
Reference in New Issue
Block a user