diff --git a/infrastructure_files/configure.sh b/infrastructure_files/configure.sh index f1bfa368f..9ff18e012 100755 --- a/infrastructure_files/configure.sh +++ b/infrastructure_files/configure.sh @@ -12,6 +12,7 @@ fi if [[ $NETBIRD_DOMAIN == "localhost" || $NETBIRD_DOMAIN == "127.0.0.1" ]] then export NETBIRD_MGMT_API_ENDPOINT=http://$NETBIRD_DOMAIN:$NETBIRD_MGMT_API_PORT + export NETBIRD_MGMT_GRPC_API_ENDPOINT=http://$NETBIRD_DOMAIN:$NETBIRD_MGMT_GRPC_API_PORT unset NETBIRD_MGMT_API_CERT_FILE unset NETBIRD_MGMT_API_CERT_KEY_FILE fi diff --git a/infrastructure_files/docker-compose.yml.tmpl b/infrastructure_files/docker-compose.yml.tmpl index 605ed812b..71b24627f 100644 --- a/infrastructure_files/docker-compose.yml.tmpl +++ b/infrastructure_files/docker-compose.yml.tmpl @@ -12,6 +12,7 @@ services: - AUTH0_CLIENT_ID=$NETBIRD_AUTH0_CLIENT_ID - AUTH0_AUDIENCE=$NETBIRD_AUTH0_AUDIENCE - NETBIRD_MGMT_API_ENDPOINT=$NETBIRD_MGMT_API_ENDPOINT + - NETBIRD_MGMT_GRPC_API_ENDPOINT=$NETBIRD_MGMT_GRPC_API_ENDPOINT - NGINX_SSL_PORT=443 - LETSENCRYPT_DOMAIN=$NETBIRD_DOMAIN - LETSENCRYPT_EMAIL=$NETBIRD_LETSENCRYPT_EMAIL @@ -39,7 +40,7 @@ services: - $LETSENCRYPT_VOLUMENAME:/etc/letsencrypt:ro - ./management.json:/etc/netbird/management.json ports: - - 33073:33073 #gRPC port + - $NETBIRD_MGMT_GRPC_API_PORT:33073 #gRPC port - $NETBIRD_MGMT_API_PORT:33071 #API port # # port and command for Let's Encrypt validation # - 443:443 diff --git a/infrastructure_files/setup.env b/infrastructure_files/setup.env index 855e81c6a..60a244006 100644 --- a/infrastructure_files/setup.env +++ b/infrastructure_files/setup.env @@ -19,8 +19,12 @@ NETBIRD_LETSENCRYPT_EMAIL="" # Management API port NETBIRD_MGMT_API_PORT=33071 +# Management GRPC API port +NETBIRD_MGMT_GRPC_API_PORT=33073 # Management API endpoint address, used by the Dashboard NETBIRD_MGMT_API_ENDPOINT=https://$NETBIRD_DOMAIN:$NETBIRD_MGMT_API_PORT +# Management GRPC API endpoint address, used by the hosts to register +NETBIRD_MGMT_GRPC_API_ENDPOINT=https://$NETBIRD_DOMAIN:NETBIRD_MGMT_GRPC_API_PORT # Management Certficate file path. These are generated by the Dashboard container NETBIRD_MGMT_API_CERT_FILE="/etc/letsencrypt/live/$NETBIRD_DOMAIN/fullchain.pem" # Management Certficate key file path. @@ -50,6 +54,8 @@ export NETBIRD_AUTH0_AUDIENCE export NETBIRD_LETSENCRYPT_EMAIL export NETBIRD_MGMT_API_PORT export NETBIRD_MGMT_API_ENDPOINT +export NETBIRD_MGMT_GRPC_API_PORT +export NETBIRD_MGMT_GRPC_API_ENDPOINT export NETBIRD_MGMT_API_CERT_FILE export NETBIRD_MGMT_API_CERT_KEY_FILE export TURN_USER