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