· 6 years ago · Oct 21, 2019, 08:36 AM
1aperture:
2
3# The environment the app is running in, either production, staging or development
4NODE_ENV=development
5
6# Port which aperture should listen on
7APERTURE_PORT=9001
8# This should be the same secure key in @cryb/api/.env under 'APERTURE_WS_KEY'
9APERTURE_KEY=api-aperture-key
10
11# Port which streaming should listen to
12STREAMING_PORT=9000
13# This should be the same secure key in @cryb/portal/.env under 'STREAMING_KEY'
14STREAMING_KEY=portal-streaming-key
15
16# The URI used for connecting to the MongoDB database
17MONGO_URI=mongodb://localhost:27017/cryb
18
19------------------------------------------------------------------------------------------
20api:
21
22# The environment the app is running in, either production, staging or development
23NODE_ENV=development
24
25# Port which @cryb/api should listen on
26PORT=4000
27
28# The JWT key used to encrypt/decrypt tokens used for user authentication
29JWT_KEY=JHNbynbb76bINU8Nnhn5vc3sS3CboP
30
31# The base REST endpoint that is used to talk to @cryb/portals
32PORTALS_API_URL=http://localhost:1337
33# This should the same secure key in @cryb/portals/.env under 'API_KEY'
34PORTALS_API_KEY=api-portals-key
35
36# The base WS endpoint that is used to talk to @cryb/aperture which is sent to the client via WS once the stream is ready
37APERTURE_WS_URL=ws://localhost:9001
38# This should the same secure key in @cryb/aperture/.env under 'APERTURE_WS_KEY'
39APERTURE_WS_KEY=api-aperture-key
40
41# The URI used for connecting to the MongoDB database
42MONGO_URI=mongodb://localhost:27017/cryb
43# The URI used for connecting to Redis instance
44REDIS_URI=redis://localhost:6379
45# If you're using redis-ha on Kubernetes, set the URI for the Sentinel below
46# Make sure to uncomment the below line and uncomment the REDIS_URI line above
47# REDIS_SENTINELS=
48
49# The Discord Developer Application credentials.
50DISCORD_CLIENT_ID=633420494971994133
51DISCORD_CLIENT_SECRET=<secret here>
52DISCORD_CALLBACK_URL=http://localhost:3000/auth/discord
53
54# This should be a list of comma-separated (not space) Oauth2 Redirect URLs
55DISCORD_OAUTH_ORIGINS=http://localhost:3000
56
57# Optional: User Configurable
58
59# The maximum amount of members a room can have (default 10)
60# MAX_ROOM_MEMBER_COUNT=10
61
62# The amount of members a room needs to hit for a Portal (VM) to be created / queued (default 2)
63# MIN_MEMBER_PORTAL_CREATION_COUNT=2
64---------------------------------------------------------------------------------------
65portal:
66
67# The environment the app is running in, either production, staging or development
68NODE_ENV=development
69
70# The base REST endpoint that is used to talk to @cryb/portals
71PORTALS_WS_URL=ws://localhost:1337
72# This should the same secure key in @cryb/portals/.env under 'PORTAL_KEY'
73PORTALS_KEY=portals-portal-key
74
75# The URL of @cryb/aperture streaming that ffmpeg should stream to. This should be :9000 on @cryb/aperture.
76STREAMING_URL=http://localhost:9000
77# This should the same secure key in @cryb/aperture/.env under 'STREAMING_KEY'
78STREAMING_KEY=portal-streaming-key
79
80# The Display services like Chromium and ffmpeg will use
81DISPLAY=:100
82# The width of the video stream in px
83VIDEO_WIDTH=1280
84# The height of the video stream in px
85VIDEO_HEIGHT=720
86# The bitrate of the video stream in kilobits
87VIDEO_BITRATE=1200k
88# The Frames Per Second of the video stream (the lower it is, the higher performance is)
89VIDEO_FPS=30
90# Switch to false if you want to disable audio support (could result in better performance)
91AUDIO_ENABLED=true
92# The bitrate of the audio stream in kilobits
93AUDIO_BITRATE=128k
94
95# Used to configure Chromium Dark Mode
96IS_CHROMIUM_DARK_MODE=true
97
98# URL that will be used on first start
99STARTUP_URL=https://www.google.com
100------------------------------------------------------------------------------------
101portals:
102
103# The environment the app is running in, either production, staging or development
104NODE_ENV=development
105
106# Port which @cryb/portals should listen on
107PORT=1337
108
109# The base REST endpoint that is used to talk to @cryb/api
110API_URL=http://localhost:4000
111# This should the same secure key in @cryb/api/.env under 'PORTALS_API_KEY'
112API_KEY=api-portals-key
113
114# This should the same secure key in @cryb/portal/.env under 'PORTALS_KEY'
115PORTAL_KEY=portals-portal-key
116
117# The URI used for connecting to the MongoDB database
118MONGO_URI=mongodb://localhost:27017/cryb
119# The URI used for connecting to Redis instance
120REDIS_URI=redis://localhost:6379
121# If you're using redis-ha on Kubernetes, set the URI for the Sentinel below
122# Make sure to uncomment the below line and uncomment the REDIS_URI line above
123# REDIS_SENTINELS=
124
125# Optional: the JSON Google Application Credentials used for gcloud.driver
126# GOOGLE_APPLICATION_CREDENTIALS=
127
128# Optional: configuration for kubernetes.driver
129# The URL of the registry the image for the portal is located at
130# K8S_PORTAL_IMAGE_REGISTRY_URL=
131# The name of the secret for pulling the image from the registry
132# K8S_PORTAL_IMAGE_PULL_SECRET=
133
134# The name of the secret for the container env variables
135# K8S_PORTAL_ENV_SECRET=
136
137# The requested CPU limit for the portal instance
138# K8S_PORTAL_CPU_LIMIT=
139# The requested memory limit for the portal instance
140# K8S_PORTAL_MEMORY_LIMIT=
141# The requested CPU for the portal instance
142# K8S_PORTAL_CPU_REQUESTED=
143# The requested memory for the portal instance
144# K8S_PORTAL_MEMORY_REQUESTED=
145-----------------------------------------------------------------------
146web:
147
148# The environment the app is running in, either production, staging or development
149NODE_ENV=development
150
151# The URL used to interact with the WebSocket server running on @cryb/api
152API_WS_URL=ws://localhost:4000
153
154# The URL used to interact with the REST API running on @cryb/api
155API_BASE_URL=http://localhost:4000
156# The URL that @cryb/web is being hosted on. Locally, this would be 'http://localhost:3000'
157WEB_BASE_URL=http://localhost:3000
158
159# The domain used while setting cookies. Locally, this would be 'localhost'. In production, this would be '.example.com'
160COOKIE_DOMAIN=localhost
161
162# Nuxt.js Defaults
163HOST=0.0.0.0
164NUXT_PORT=3000
165
166# Optional: Branding
167# BRAND_NAME=
168# BRAND_LANDING_VIDEO_ID=
169# BRAND_GA_TRACKING_ID=