WAPP_API_KEY

This commit is contained in:
mike
2025-12-12 13:08:50 +01:00
parent a5222646e8
commit e5ff7aee25
5 changed files with 4 additions and 1177 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

1173
output.md

File diff suppressed because it is too large Load Diff

View File

@@ -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