WAPP_API_KEY
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Server Configuration
|
||||
PORT=3001
|
||||
API_KEY=your-strong-api-key-here
|
||||
WAPP_API_KEY=your-strong-api-key-here
|
||||
|
||||
# Database & Storage
|
||||
DB_PATH=./data/whatsapp.db
|
||||
|
||||
@@ -17,7 +17,7 @@ services:
|
||||
- NODE_ENV=production
|
||||
|
||||
# API Security
|
||||
- API_KEY=${API_KEY:-your-secure-api-key-here}
|
||||
- WAPP_API_KEY=${WAPP_API_KEY:-your-secure-api-key-here}
|
||||
|
||||
# Paths (pointing to volume mounts)
|
||||
- DB_PATH=/app/data/whatsapp.db
|
||||
|
||||
@@ -17,7 +17,7 @@ services:
|
||||
- NODE_ENV=production
|
||||
|
||||
# API Security
|
||||
- API_KEY=${API_KEY:-your-secure-api-key-here}
|
||||
- WAPP_API_KEY=${WAPP_API_KEY:-your-secure-api-key-here}
|
||||
|
||||
# Paths (pointing to volume mounts)
|
||||
- DB_PATH=/app/data/whatsapp.db
|
||||
|
||||
@@ -21,7 +21,7 @@ const config = {
|
||||
mediaPath : process.env.MEDIA_PATH || path.join(__dirname, 'media'),
|
||||
headless : process.env.HEADLESS !== 'false',
|
||||
rejectCalls: process.env.REJECT_CALLS !== 'false',
|
||||
apiKey : process.env.API_KEY || 'test-key'
|
||||
apiKey : process.env.WAPP_API_KEY || 'your-secure-api-key-here'
|
||||
}
|
||||
|
||||
// Ensure directories exist
|
||||
|
||||
Reference in New Issue
Block a user