- Added Dockerfile for multi-stage build including PHP, Node.js, and Nginx. - Created docker-compose.coolify.yaml for service orchestration with app, workers, MariaDB, and Redis. - Introduced entrypoint.sh for initialization tasks like JWT key generation and database migrations. - Configured Nginx with default.conf for handling requests and routing to PHP-FPM. - Added php.ini with production settings and opcache configuration. - Set up supervisord.conf to manage PHP-FPM and Nginx processes. - Created frontend-domains.json for managing allowed frontend domains. - Added gen-cors-env.php script to generate CORS environment variables from frontend domains. - Updated framework.yaml to configure trusted proxies and headers. - Created .dockerignore to exclude unnecessary files from the Docker context. - Added .env.coolify.example for environment variable configuration. - Documented deployment steps and troubleshooting in coolify.md.
40 lines
2.3 KiB
JSON
40 lines
2.3 KiB
JSON
{
|
|
"_comment": "Frontend domains served by this backend. Add an entry per city, then run: ddev exec php docker/gen-cors-env.php — paste the output into Coolify env (CORS_ALLOW_ORIGIN + ALLOWED_FRONTEND_HOSTS), add the same domain to the app service in Coolify UI, and redeploy.",
|
|
"domains": [
|
|
{ "domain": "nobat724.com", "label": "اصلی" },
|
|
{ "domain": "ahvaz-nobat.ir", "label": "اهواز" },
|
|
{ "domain": "arak-nobat.ir", "label": "اراک" },
|
|
{ "domain": "ardabil-nobat.ir", "label": "اردبیل" },
|
|
{ "domain": "bandar-nobat.ir", "label": "بندرعباس" },
|
|
{ "domain": "behbahan-nobat.ir", "label": "بهبهان" },
|
|
{ "domain": "birjand-nobat.ir", "label": "بیرجند" },
|
|
{ "domain": "bojnord-nobat.ir", "label": "بجنورد" },
|
|
{ "domain": "bushehr-nobat.ir", "label": "بوشهر" },
|
|
{ "domain": "dehdasht-nobat.ir", "label": "دهدشت" },
|
|
{ "domain": "esf-nobat.ir", "label": "اصفهان" },
|
|
{ "domain": "golestan-nobat.ir", "label": "گلستان" },
|
|
{ "domain": "hamadan-nobat.ir", "label": "همدان" },
|
|
{ "domain": "ilam-nobat.ir", "label": "ایلام" },
|
|
{ "domain": "karaj-nobat.ir", "label": "کرج" },
|
|
{ "domain": "kerman-nobat.ir", "label": "کرمان" },
|
|
{ "domain": "kermanshah-nobat.ir", "label": "کرمانشاه" },
|
|
{ "domain": "lorestan-nobat.ir", "label": "لرستان" },
|
|
{ "domain": "mashhad-nobat.ir", "label": "مشهد" },
|
|
{ "domain": "qazvin-nobat.ir", "label": "قزوین" },
|
|
{ "domain": "qom-nobat.ir", "label": "قم" },
|
|
{ "domain": "rasht-nobat.ir", "label": "رشت" },
|
|
{ "domain": "sanandaj-nobat.ir", "label": "سنندج" },
|
|
{ "domain": "sari-nobat.ir", "label": "ساری" },
|
|
{ "domain": "semnan-nobat.ir", "label": "سمنان" },
|
|
{ "domain": "shiraz-nobat.ir", "label": "شیراز" },
|
|
{ "domain": "shkord-nobat.ir", "label": "شهرکرد" },
|
|
{ "domain": "tabriz-nobat.ir", "label": "تبریز" },
|
|
{ "domain": "tehran-nobat.ir", "label": "تهران" },
|
|
{ "domain": "urmia-nobat.ir", "label": "ارومیه" },
|
|
{ "domain": "yasuj-nobat.ir", "label": "یاسوج" },
|
|
{ "domain": "yazd-nobat.ir", "label": "یزد" },
|
|
{ "domain": "zahedan-nobat.ir", "label": "زاهدان" },
|
|
{ "domain": "zanjan-nobat.ir", "label": "زنجان" }
|
|
]
|
|
}
|