feat: make gateway UDP port configurable via GATEWAY_UDP_PORT environment variable
Add GATEWAY_UDP_PORT environment variable with default value 51900 to replace hardcoded port 51820. Update DEFAULT_GATEWAY_ENDPOINT in .env.example to use new port. Add UDP port mapping to gateway service in docker-compose using GATEWAY_UDP_PORT. Add NEXAVPN_GATEWAY_LISTEN_PORT environment variable to gateway container. Update gateway-entrypoint.sh to use GATEWAY_LISTEN_PORT variable in bootstrap payload and WireGuard interface configuration.
This commit is contained in:
@@ -10,7 +10,8 @@ ACCESS_TOKEN_TTL_SECONDS=900
|
||||
REFRESH_TOKEN_TTL_SECONDS=2592000
|
||||
DEFAULT_DNS_SERVERS=10.20.0.53
|
||||
DEFAULT_VPN_CIDR=100.96.0.0/24
|
||||
DEFAULT_GATEWAY_ENDPOINT=vpn.example.com:51820
|
||||
GATEWAY_UDP_PORT=51900
|
||||
DEFAULT_GATEWAY_ENDPOINT=vpn.example.com:51900
|
||||
DEFAULT_GATEWAY_PUBLIC_KEY=replace-me
|
||||
GATEWAY_BOOTSTRAP_TOKEN=nexavpn-gateway-bootstrap
|
||||
NEXAVPN_GATEWAY_ID=
|
||||
|
||||
Reference in New Issue
Block a user