-
Notifications
You must be signed in to change notification settings - Fork 241
/
.env.dev
110 lines (93 loc) · 5.29 KB
/
.env.dev
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# ┌──────────────────────────────────────────────────────────────────────────────┐
# │ @author jrCleber |
# │ @filename dev-env.yml │
# │ Developed by: Cleber Wilson │
# │ File name: dev-env.yml │
# │ Creation date: Dez 03, 2023 │
# │ Contact: [email protected] │
# ├──────────────────────────────────────────────────────────────────────────────┤
# │ @copyright © Cleber Wilson 2022. All rights reserved. │
# │ Licensed under the Apache License, Version 2.0 │
# │ │
# │ @license "https://github.com/code-chat-br/whatsapp-api/blob/main/LICENSE" │
# │ │
# │ You may not use this file except in compliance with the License. │
# │ You may obtain a copy of the License at │
# │ │
# │ http://www.apache.org/licenses/LICENSE-2.0 │
# │ │
# │ Unless required by applicable law or agreed to in writing, software │
# │ distributed under the License is distributed on an "AS IS" BASIS, │
# │ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. │
# │ │
# │ See the License for the specific language governing permissions and │
# │ limitations under the License. │
# ├──────────────────────────────────────────────────────────────────────────────┤
# │ @important │
# │ For any future changes to the code in this file, it is recommended to │
# │ contain, together with the modification, the information of the developer │
# │ who changed it and the date of modification. │
# └──────────────────────────────────────────────────────────────────────────────┘
# ⚠️
# ⚠️ ALL SETTINGS DEFINED IN THIS FILE ARE APPLIED TO ALL INSTANCES.
# ⚠️
# ⚠️ COPY THIS FILE TO .env
# Choose the server type for the application
SERVER_PORT=8084
SESSION_HTTP_SECRET=W0NvZGVDaGF0XTpbU2Vzc
LOG_LEVEL=ERROR|WARN|INFO|DEBUG|LOG
LOG_COLOR=true
# Permanente data storage
DATABASE_ENABLED=true
DATABASE_URL=postgres://USER:PASS@HOST:PORT/codechat_api_v1?schema=public
DATABASE_SYNC_MESSAGES=true
DATABASE_SAVE_DATA_NEW_MESSAGE=true
DATABASE_SAVE_MESSAGE_UPDATE=true
DATABASE_SAVE_DATA_CONTACTS=true
DATABASE_SAVE_DATA_CHATS=true
DATABASE_SAVE_LOGS=true
# Global Webhook
# It will notify all events of all businesses and instances.
GLOBAL_WEBHOOK_URL=url
GLOBAL_WEBHOOK_ENABLED=false
# Determine how long the instance should be deleted from memory in case of no connection.
# Default time: 5 minutes
# If you don't even want an expiration, enter the value false
INSTANCE_EXPIRATION_TIME=false
# Name that will be displayed on smartphone connection
CONFIG_SESSION_PHONE_CLIENT=CodeChat_V1
CONFIG_SESSION_PHONE_NAME=Edge
# Set qrcode display limit
QRCODE_LIMIT=10
QRCODE_EXPIRATION_TIME=60 # seconds
# Maximun time to connect to whatsapp
CONNECTION_TIMEOUT=300 # seconds
AUTHENTICATION_GLOBAL_AUTH_TOKEN=zYzP7ocstxh3Sscefew4FZTCu4ehnM8v4hu
# 0 = never expires | 3600 = 1 hour | 86400 = 1 day | 604800 = 1 week
AUTHENTICATION_JWT_EXPIRES_IN=0
AUTHENTICATION_JWT_SECRET=3RFYwe-fwf4fw4w8e-BrLZzx
REDIS_ENABLED=false
REDIS_URI=redis://localhost:6379
REDIS_PREFIX=codechat
# https://docs.codechat.dev/api/v1/whatsapp-api/whatsapp-api-configuration#s3
S3_ENABLED=false
S3_ACCESS_KEY=access_key_id
S3_SECRET_KEY=secret_access_key
S3_BUCKET=bucket_name
S3_PORT=9000
S3_ENDPOINT=127.0.0.1
S3_USE_SSL=false
# AMAZON S3 - Environment variables
# S3_ENABLED=true
# S3_BUCKET=bucket_name
# S3_ACCESS_KEY=access_key_id
# S3_SECRET_KEY=secret_access_key
# S3_ENDPOINT=s3.amazonaws.com # region: s3.eu-west-3.amazonaws.com
# MINIO Use SSL - Environment variables
# S3_ENABLED=true
# S3_ACCESS_KEY=access_key_id
# S3_SECRET_KEY=secret_access_key
# S3_BUCKET=bucket_name
# S3_PORT=443
# S3_ENDPOINT=s3.domain.com
# S3_USE_SSL=true