-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathconfig-dev.toml
More file actions
65 lines (52 loc) · 1.87 KB
/
config-dev.toml
File metadata and controls
65 lines (52 loc) · 1.87 KB
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
# ! these configuration are meant for development purposes only, please do not use these in production environment
environment = "development"
# ** main app
[app]
address = "0.0.0.0:8000"
websocket_server_address = "0.0.0.0:8081"
# this url is meant to be the hosted url of the frontend, if the frontend is hosted separately
# make sure you add the protocol as well, like https://wapikit.vercel.app,
# because this would be used for cors and other configurations
# also, if in case the application api endpoint is used from another internal application of the Organization they can enable the API access via this option
cors_allowed_origins = ["http://127.0.0.1:5000"]
# this flag to be true if in case you want to host the frontend separately from the backend,
# like on vercel, so enabling this flag would skip on building and bundling of the frontend
# with the fo executable
IS_SELF_HOSTED = true
# default user details
default_user_email = "contact.sarthakjain@gmail.com"
default_user_password = "contact.sarthakjain@gmail.com"
default_user_username = "sarthakjdev"
jwt_secret = "fcb63eabf54d6c38f41b26da4835d386678a6844b5d9702813e02de133e5010e"
[whatsapp]
# whatsapp configuration
apiAccessToken = "your_api_token"
businessAccountId = "your_business_account_id"
webhookSecret = "0123456789"
phoneNumberId = "your_phone_number_id"
# redis
[redis]
redis_url = "redis://localhost:6379"
# email configuration
[smtp]
host = "smtp.gmail.com"
port = 587
username = "contact.sarthak@gmail.com"
password = "your_password"
# FEATURE FLAGS
[feature_flags]
IS_ROLE_BASED_ACCESS_CONTROL_ENABLED = true
IS_SINGLE_BINARY_MODE_ENABLED = true
ARE_INTEGRATIONS_ENABLED = true
IS_QUICK_KEYWORD_REPLIES_ENABLED = true
# ** Database configuration
[db]
host = "localhost"
port = 5432
user = "wapikit"
password = "wapikit"
database = "wapikit"
ssl_mode = "disable"
max_open = 25
max_idle = 25
max_lifetime = "300s"