mirror of
https://github.com/thecyberlearn/quantumtaskai-caprover.git
synced 2026-08-18 08:52:57 +00:00
- Replace hardcoded values in dokploy.json with environment variable substitution - Make production settings more environment-aware with better defaults - Add debug logging to help troubleshoot configuration issues - Update .env.example with Dokploy-specific configuration - Add deploy-dokploy.sh helper script for easy environment setup - Improve ALLOWED_HOSTS and CSRF_TRUSTED_ORIGINS handling with fallbacks This makes the deployment more flexible and follows 12-factor app principles.
26 lines
782 B
JSON
26 lines
782 B
JSON
{
|
|
"name": "quantum-tasks-ai",
|
|
"type": "dockerfile",
|
|
"dockerfile": "./Dockerfile.dokploy",
|
|
"port": 3000,
|
|
"healthCheck": "/health/",
|
|
"buildArgs": {},
|
|
"buildOptions": ["--no-cache"],
|
|
"security": {
|
|
"redirectHttpsToHttp": true,
|
|
"forceHttps": false
|
|
},
|
|
"env": {
|
|
"PYTHONUNBUFFERED": "1",
|
|
"DEBUG": "false",
|
|
"SECRET_KEY": "${SECRET_KEY:-production-key-change-this-123456789}",
|
|
"ALLOWED_HOSTS": "${ALLOWED_HOSTS:-*}",
|
|
"DOKPLOY_PROJECT_NAME": "quantum-tasks-ai",
|
|
"SECURE_SSL_REDIRECT": "${SECURE_SSL_REDIRECT:-false}",
|
|
"SECURE_PROXY_SSL_HEADER": "HTTP_X_FORWARDED_PROTO,https",
|
|
"CSRF_TRUSTED_ORIGINS": "${CSRF_TRUSTED_ORIGINS:-}",
|
|
"DATABASE_URL": "${DATABASE_URL:-}",
|
|
"DOMAIN": "${DOMAIN:-quamtumtaskai.netcoptech.com}"
|
|
}
|
|
}
|