getzero11 commited on
Commit
b4c2020
·
verified ·
1 Parent(s): 00f6b81

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +25 -4
Dockerfile CHANGED
@@ -1,5 +1,26 @@
1
- FROM atendai/evolution-api:v1.8.2
2
- ENV AUTH_MODE=apikey
3
- ENV AUTH_API_KEY=ReplaceWithYourSecretToken
 
4
  ENV PORT=7860
5
- EXPOSE 7860
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM atendai/evolution-api:v2.1.1
2
+
3
+ # 1. Hugging Face Port Fix
4
+ # HF requires port 7860 to show the "Running" status
5
  ENV PORT=7860
6
+ ENV SERVER_PORT=7860
7
+ EXPOSE 7860
8
+
9
+ # 2. Security Configuration
10
+ # This is the "Token" you will use in n8n (Header: apikey)
11
+ ENV AUTH_MODE=apikey
12
+ ENV AUTH_API_KEY=Your_Super_Secret_Token_Here
13
+
14
+ # 3. Server URL (Critical for Webhooks/QR Codes)
15
+ # Pattern: https://username-space-name.hf.space
16
+ ENV SERVER_URL=https://getzero11-whatsapp.hf.space
17
+
18
+ # 4. Supabase Database Configuration
19
+ ENV DATABASE_ENABLED=true
20
+ ENV DATABASE_PROVIDER=postgresql
21
+ # Use the URI you copied from Supabase here:
22
+ ENV DATABASE_CONNECTION_URI=postgresql://postgres:[PASSWORD]@[HOST]:5432/postgres
23
+
24
+ # 5. Optimization for HF Free Tier
25
+ ENV CACHE_LOCAL_ENABLED=true
26
+ ENV DELAY_MESSAGES=true