quantumtaskai-caprover/dokploy.json
thecyberlearn 5b4bc80b03 Fix Dokploy bad gateway issue
- Fix ALLOWED_HOSTS configuration in dokploy.json (set to *)
- Update production_settings.py to respect SECURE_SSL_REDIRECT environment variable
- Change startup script to use netcop_hub.production_settings instead of production_https_settings
- Add proper environment variable handling for SSL and CSRF settings
- Resolve SSL redirect conflicts between Dokploy proxy and Django settings
2025-09-05 10:10:02 +05:30

24 lines
736 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": "production-key-change-this-123456789",
"ALLOWED_HOSTS": "*",
"DOKPLOY_PROJECT_NAME": "quantum-tasks-ai",
"SECURE_SSL_REDIRECT": "false",
"SECURE_PROXY_SSL_HEADER": "HTTP_X_FORWARDED_PROTO,https",
"CSRF_TRUSTED_ORIGINS": "https://website-quantumtaskai-wrczik-cc50ac-31-97-62-205.traefik.me,http://website-quantumtaskai-wrczik-cc50ac-31-97-62-205.traefik.me"
}
}