Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(dapp-ui): add nodely turn server #29

Merged
merged 1 commit into from
Jun 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion sites/dapp-ui/.env
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
VITE_TURN_USERNAME="fc7708976bf5d60be20c5a1d"
VITE_TURN_CREDENTIAL="sVpEREQGGhXOw4gX"
VITE_TURN_CREDENTIAL="sVpEREQGGhXOw4gX"
VITE_NODELY_TURN_USERNAME="liquid-auth"
VITE_NODELY_TURN_CREDENTIAL="sqmcP4MiTKMT4TGEDSk9jgHY"
15 changes: 14 additions & 1 deletion sites/dapp-ui/src/components/ConnectModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,18 @@ export function ConnectModal({
'stun:stun2.l.google.com:19302',
],
},
{
urls: [
"turn:global.turn.nodely.network:80?transport=tcp",
"turns:global.turn.nodely.network:443?transport=tcp",
"turn:eu.turn.nodely.io:80?transport=tcp",
"turns:eu.turn.nodely.io:443?transport=tcp",
"turn:us.turn.nodely.io:80?transport=tcp",
"turns:us.turn.nodely.io:443?transport=tcp",
],
username: import.meta.env.VITE_NODELY_TURN_USERNAME || 'username',
credential: import.meta.env.VITE_NODELY_TURN_CREDENTIAL || 'credential',
},
{
urls: [
'turn:global.relay.metered.ca:80',
Expand All @@ -71,6 +83,7 @@ export function ConnectModal({
username: import.meta.env.VITE_TURN_USERNAME || 'username',
credential: import.meta.env.VITE_TURN_CREDENTIAL || 'credential',
},

],
iceCandidatePoolSize: 10,
})
Expand Down Expand Up @@ -141,7 +154,7 @@ export function ConnectModal({
height: '80px',
width: '80px',
}}
>
>
<CircularProgress
size={80}
/>
Expand Down
Loading