Browse Source

pr comments addressed

Abhishek Kondur 2 years ago
parent
commit
5ad092343a
3 changed files with 7 additions and 1 deletions
  1. 5 0
      compose/docker-compose.reference.yml
  2. 1 1
      compose/docker-compose.yml
  3. 1 0
      mq/handlers.go

+ 5 - 0
compose/docker-compose.reference.yml

@@ -40,6 +40,11 @@ services:
       AZURE_TENANT: "" # "<only for azure, you may optionally specify the tenant for the OAuth>"
       OIDC_ISSUER: "" # https://oidc.yourprovider.com - URL of oidc provider
       DEFAULT_PROXY_MODE: "off" # if ON, all new clients will enable proxy by default if OFF, all new clients will disable proxy by default, if AUTO, stick with the existing logic for NAT detection
+      TURN_SERVER_HOST: "turn.NETMAKER_BASE_DOMAIN" # domain for your turn server
+      TURN_SERVER_API_HOST: "https://turnapi.NETMAKER_BASE_DOMAIN" # domain of the turn api server
+      TURN_PORT: "3479" #  port to access turn server
+      TURN_USERNAME: "REPLACE_TURN_USERNAME"  # the username to set for turn api access
+      TURN_PASSWORD: "REPLACE_TURN_PASSWORD" #  the password to set for turn api access
     ports:
       - "3478:3478/udp" # the stun port
   netmaker-ui:  # The Netmaker UI Component

+ 1 - 1
compose/docker-compose.yml

@@ -85,7 +85,7 @@ services:
       - mosquitto_logs:/mosquitto/log
   turn:
     container_name: turn
-    image: gravitl/turnserver:v1
+    image: gravitl/turnserver:v1.0.0
     volumes:
       - turn_server:/etc/config
     environment:

+ 1 - 0
mq/handlers.go

@@ -167,6 +167,7 @@ func UpdateHost(client mqtt.Client, msg mqtt.Message) {
 		err = logic.RegisterHostWithTurn(hostUpdate.Host.ID.String(), hostUpdate.Host.HostPass)
 		if err != nil {
 			logger.Log(0, "failed to register host with turn server: ", err.Error())
+			return
 		}
 	}