Skip to content

Commit 19039aa

Browse files
committed
fix: For compatibility reasons, container mode has been removed
1 parent 091b920 commit 19039aa

File tree

8 files changed

+123
-420
lines changed

8 files changed

+123
-420
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* Adjustments to search endpoint for contacts, chats, messages and Status messages
88
* Now when deleting the instance, the data referring to it in mongodb is also deleted
99
* It is now validated if the instance name contains uppercase and special characters
10+
* For compatibility reasons, container mode has been removed
1011

1112
# 1.3.1 (2023-07-20 07:48)
1213

Docker/.env.example

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,3 @@ AUTHENTICATION_EXPOSE_IN_FETCH_INSTANCES=true
9797
# seconds - 3600s ===1h | zero (0) - never expires
9898
AUTHENTICATION_JWT_EXPIRIN_IN=0
9999
AUTHENTICATION_JWT_SECRET='L0YWtjb2w554WFqPG'
100-
# Set the instance name and webhook url to create an instance in init the application
101-
# With this option activated, you work with a url per webhook event, respecting the local url and the name of each event
102-
# container or server
103-
AUTHENTICATION_INSTANCE_MODE=server
104-
# if you are using container mode, set the container name and the webhook url to default instance
105-
AUTHENTICATION_INSTANCE_NAME=evolution
106-
AUTHENTICATION_INSTANCE_WEBHOOK_URL=''
107-
AUTHENTICATION_INSTANCE_CHATWOOT_ACCOUNT_ID=1
108-
AUTHENTICATION_INSTANCE_CHATWOOT_TOKEN=123456
109-
AUTHENTICATION_INSTANCE_CHATWOOT_URL=''

src/config/env.config.ts

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -94,20 +94,12 @@ export type EventsWebhook = {
9494

9595
export type ApiKey = { KEY: string };
9696
export type Jwt = { EXPIRIN_IN: number; SECRET: string };
97-
export type Instance = {
98-
NAME: string;
99-
WEBHOOK_URL: string;
100-
MODE: string;
101-
CHATWOOT_ACCOUNT_ID: string;
102-
CHATWOOT_TOKEN: string;
103-
CHATWOOT_URL: string;
104-
};
97+
10598
export type Auth = {
10699
API_KEY: ApiKey;
107100
EXPOSE_IN_FETCH_INSTANCES: boolean;
108101
JWT: Jwt;
109102
TYPE: 'jwt' | 'apikey';
110-
INSTANCE: Instance;
111103
};
112104

113105
export type DelInstance = number | boolean;
@@ -276,15 +268,6 @@ export class ConfigService {
276268
: 3600,
277269
SECRET: process.env.AUTHENTICATION_JWT_SECRET,
278270
},
279-
INSTANCE: {
280-
NAME: process.env.AUTHENTICATION_INSTANCE_NAME,
281-
WEBHOOK_URL: process.env.AUTHENTICATION_INSTANCE_WEBHOOK_URL,
282-
MODE: process.env.AUTHENTICATION_INSTANCE_MODE,
283-
CHATWOOT_ACCOUNT_ID:
284-
process.env.AUTHENTICATION_INSTANCE_CHATWOOT_ACCOUNT_ID || '',
285-
CHATWOOT_TOKEN: process.env.AUTHENTICATION_INSTANCE_CHATWOOT_TOKEN || '',
286-
CHATWOOT_URL: process.env.AUTHENTICATION_INSTANCE_CHATWOOT_URL || '',
287-
},
288271
},
289272
};
290273
}

src/dev-env.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -136,14 +136,4 @@ AUTHENTICATION:
136136
# Set the secret key to encrypt and decrypt your token and its expiration time.
137137
JWT:
138138
EXPIRIN_IN: 0 # seconds - 3600s === 1h | zero (0) - never expires
139-
SECRET: L=0YWt]b2w[WF>#>:&E`
140-
# Set the instance name and webhook url to create an instance in init the application
141-
INSTANCE:
142-
# With this option activated, you work with a url per webhook event, respecting the local url and the name of each event
143-
MODE: server # container or server
144-
# if you are using container mode, set the container name and the webhook url to default instance
145-
NAME: evolution
146-
WEBHOOK_URL: <url>
147-
CHATWOOT_ACCOUNT_ID: 1
148-
CHATWOOT_TOKEN: 123456
149-
CHATWOOT_URL: <url>
139+
SECRET: L=0YWt]b2w[WF>#>:&E`

0 commit comments

Comments
 (0)