Expose AdminJS on nudentic.ir: nginx only proxied /api, so /admin never reached Nest.
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user