mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-06 05:04:27 +08:00
Revert "add stun to server stack (#3312)"
This reverts commit 39006debba
.
This commit is contained in:
parent
64bc351564
commit
7b6e544cdc
2 changed files with 1 additions and 13 deletions
|
@ -12,7 +12,7 @@ services:
|
||||||
- sqldata:/root/data
|
- sqldata:/root/data
|
||||||
environment:
|
environment:
|
||||||
# config-dependant vars
|
# config-dependant vars
|
||||||
- STUN_SERVERS=stun.${NM_DOMAIN}:3478,stun1.l.google.com:19302,stun2.l.google.com:19302,stun3.l.google.com:19302,stun4.l.google.com:19302
|
- STUN_SERVERS=stun1.l.google.com:19302,stun2.l.google.com:19302,stun3.l.google.com:19302,stun4.l.google.com:19302
|
||||||
# The domain/host IP indicating the mq broker address
|
# The domain/host IP indicating the mq broker address
|
||||||
- BROKER_ENDPOINT=wss://broker.${NM_DOMAIN} # For EMQX broker use `BROKER_ENDPOINT=wss://broker.${NM_DOMAIN}/mqtt`
|
- BROKER_ENDPOINT=wss://broker.${NM_DOMAIN} # For EMQX broker use `BROKER_ENDPOINT=wss://broker.${NM_DOMAIN}/mqtt`
|
||||||
# For EMQX broker (uncomment the two lines below)
|
# For EMQX broker (uncomment the two lines below)
|
||||||
|
@ -39,14 +39,6 @@ services:
|
||||||
links:
|
links:
|
||||||
- "netmaker:api"
|
- "netmaker:api"
|
||||||
restart: always
|
restart: always
|
||||||
stun:
|
|
||||||
container_name: stun
|
|
||||||
image: coturn/coturn
|
|
||||||
restart: always
|
|
||||||
ports:
|
|
||||||
- "3478:3478/udp" # STUN UDP
|
|
||||||
environment:
|
|
||||||
- LISTENING_PORT=3478
|
|
||||||
|
|
||||||
caddy:
|
caddy:
|
||||||
image: caddy:2.8.4
|
image: caddy:2.8.4
|
||||||
|
|
|
@ -32,7 +32,3 @@ broker.{$NM_DOMAIN} {
|
||||||
}
|
}
|
||||||
reverse_proxy @ws mq:8883 # For EMQX websockets use `reverse_proxy @ws mq:8083`
|
reverse_proxy @ws mq:8883 # For EMQX websockets use `reverse_proxy @ws mq:8083`
|
||||||
}
|
}
|
||||||
|
|
||||||
https://stun.{$NM_DOMAIN} {
|
|
||||||
reverse_proxy stun:3478
|
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue