-
-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy path.env.template
95 lines (66 loc) · 2.69 KB
/
.env.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# Server listen on
SERVER_HOST=localhost
SERVER_PORT=9000
SERVER_URL=http://localhost:9000
# Time Zone corresponding to timezone identifiers from the IANA Time Zone Database es Europe/Rome default UTC
TZ=UTC
# Cors
# Origin: Allow specified origins like '["https://example.com", "https://subdomain.example.com", "http://localhost:3000"]' or all origins '*' if not specified by default.
# Methods: Allowed methods
CORS_ORIGIN='*'
CORS_METHODS='["GET", "POST", "PATCH", "DELETE"]'
# API secret key (used for user/isAuth|isRoomAllowed)
API_SECRET_KEY=mirotalkweb_default_secret
# MiroTalk API secrect keys
MIROTALK_SFU_API_KEY_SECRET=mirotalksfu_default_secret # Use the keySecret from MiroTalk SFU app/src/config.js api.keySecret
MIROTALK_P2P_API_KEY_SECRET=mirotalkp2p_default_secret # Use the keySecret from MiroTalk P2P .env API_KEY_SECRET
MIROTALK_C2C_API_KEY_SECRET=mirotalkc2c_default_secret # Use the keySecret from MiroTalk C2C .env API_KEY_SECRET
MIROTALK_BRO_API_KEY_SECRET=mirotalkbro_default_secret # Use the keySecret from MiroTalk BRO .env API_KEY_SECRET
# JWT token config
JWT_KEY=mirotalkweb_jwt_secret
JWT_EXP=2h
# MongoDb config
MONGO_HOST=mongodb
#MONGO_HOST=localhost
MONGO_USERNAME=root
MONGO_PASSWORD=rootpassword
MONGO_DATABASE=mirotalk
MONGO_PORT=27017
MONGO_URL=mongodb://root:rootpassword@mongodb:27017
#MONGO_URL=mongodb://root:rootpassword@localhost:27017
# Email config
EMAIL_VERIFICATION=false # true or false
EMAIL_HOST=emailHost
EMAIL_PORT=emailPort
EMAIL_USERNAME=emailUsername
EMAIL_PASSWORD=emailPassword
# User allowed without requiring registration for demonstration purposes of the platform
USER_DEMO_MODE=false # true or false
USER_DEMO_USERNAME=demo
USER_DEMO_PASSWORD=Demo@123
# User Registration (If false, only the existing user, created by the admin via API, can access to the platform)
USER_REGISTRATION_MODE=true # true or false
# User identified as Admin by this credentials
ADMIN_EMAIL=admin@email
ADMIN_USERNAME=adminUsername
ADMIN_PASSWORD=adminPassword
# Ngrok (Optional)
# 1. Goto https://ngrok.com
# 2. Get started for free
# 3. Replace YourNgrokAuthToken with: https://dashboard.ngrok.com/get-started/your-authtoken
NGROK_ENABLED=false # true or false
NGROK_AUTH_TOKEN=YourNgrokAuthToken
# SMS invitation (optional)
# GoTo: https://www.twilio.com/en-us/messaging/channels/sms
# HowTo: https://www.twilio.com/docs/usage/tutorials/how-to-use-your-free-trial-account
TWILIO_SMS=false # true or false
TWILIO_PHONE_NUMBER=phoneNumber
TWILIO_ACCOUNT_SID=accountSid
TWILIO_AUTH_TOKEN=authToken
# Sentry (optional)
SENTRY_DSN=''
SENTRY_TRACES_SAMPLE_RATE=1.0
# Logs
LOG_COLOR=true # true or false
LOG_DEBUG=true # true or false