Expose AdminJS on nudentic.ir: nginx only proxied /api, so /admin never reached Nest.

This commit is contained in:
2026-09-01 11:49:14 +03:30
parent dc71c73ced
commit 6465af11ee
12 changed files with 124 additions and 9 deletions

View File

@@ -45,7 +45,16 @@ pull_one() {
echo "Pulling backend/frontend :$TAG from Gitea (REGISTRY_PREFIX in .env)"
pull_one backend
pull_one frontend
if [ -f nginx/nginx.ssl.conf.template ]; then
echo "Rendering nginx SSL config (includes /admin → backend)"
chmod +x scripts/render-nginx-ssl.sh
./scripts/render-nginx-ssl.sh
fi
docker compose -f docker-compose.prod.yml --env-file .env up -d --force-recreate nginx
docker compose -f docker-compose.prod.yml --env-file .env up -d
echo "=== Status ==="
docker compose -f docker-compose.prod.yml --env-file .env ps
echo "Health: https://nudentic.ir/api/health"
echo "AdminJS: https://nudentic.ir/admin"