@@ -6,7 +6,6 @@ export const KEPPEL_GREEN_FILL = '#00B39F';
66export const CARIBBEAN_GREEN_FILL = '#00D3A9' ;
77export const DEFAULT_STROKE = '#000' ;
88export const DEFAULT_STROKE_WIDTH = '2' ;
9- export const CLOUD_URL = 'https://cloud.layer5.io' ;
109
1110export const KANVAS_MODE = {
1211 DESIGNER : 'design' ,
@@ -28,3 +27,43 @@ export const RESOURCE_TYPE = {
2827} as const ;
2928
3029export type ResourceType = ( typeof RESOURCE_TYPE ) [ keyof typeof RESOURCE_TYPE ] ;
30+ export interface ICEServer {
31+ urls : string ;
32+ username ?: string ;
33+ credential ?: string ;
34+ }
35+
36+ /**
37+ * ICE server configuration for WebRTC connections
38+ */
39+ export const ICE_SERVERS : ICEServer [ ] = [
40+ {
41+ urls : 'stun:stun.l.google.com:19302'
42+ } ,
43+ {
44+ urls : 'stun:global.stun.twilio.com:3478'
45+ } ,
46+ {
47+ urls : 'stun:openrelay.metered.ca:80'
48+ } ,
49+ {
50+ urls : 'turn:openrelay.metered.ca:80' ,
51+ username : 'openrelayproject' ,
52+ credential : 'openrelayproject'
53+ } ,
54+ {
55+ urls : 'turn:openrelay.metered.ca:443' ,
56+ username : 'openrelayproject' ,
57+ credential : 'openrelayproject'
58+ } ,
59+ {
60+ urls : 'turn:openrelay.metered.ca:443?transport=tcp' ,
61+ username : 'openrelayproject' ,
62+ credential : 'openrelayproject'
63+ }
64+ ] ;
65+
66+ export const MESHERY_CLOUD_PROD = 'https://cloud.layer5.io' ;
67+ export const MESHERY_CLOUD_STAGING = 'staging-cloud.layer5.io' ;
68+ export const MESHERY_CLOUD_WS_PROD = 'cloud-ws.layer5.io' ;
69+ export const MESHERY_CLOUD_WS_STAGING = 'staging-cloud-ws.layer5.io:6543' ;
0 commit comments