Skip to content

feat: migrate Unicorn to GitHub + Hetzner only — remove Vercel, improve Nginx#154

Merged
ruffy80 merged 3 commits into
mainfrom
copilot/check-backend-front-orchestrator
Apr 13, 2026
Merged

feat: migrate Unicorn to GitHub + Hetzner only — remove Vercel, improve Nginx#154
ruffy80 merged 3 commits into
mainfrom
copilot/check-backend-front-orchestrator

Conversation

Copilot AI commented Apr 13, 2026

Copy link
Copy Markdown
Contributor

Rezumat

Migrarea completă a ecosistemului Unicorn pentru a rula exclusiv pe GitHub Actions + Hetzner — fără Vercel, fără servicii serverless externe.

Modificări

.github/workflows/vercel-deploy.yml

  • Redenumit workflow: 🦄 Deploy ZeusAI (GitHub → Hetzner) (nu mai menționează Vercel)
  • Eliminat complet job-ul deploy-vercel (~335 linii) — nu mai există nicio referință la Vercel deploy
  • Actualizat needs: în deploy-summary și smoke-tests — nu mai depind de deploy-vercel
  • Actualizat deploy-summary — tabel fără coloana Vercel, titlu actualizat
  • Actualizat smoke-tests — verifică doar Hetzner, nu mai face probe Vercel
  • Înlocuit env.VERCEL_PROD_URL cu env.SITE_DOMAIN_DEFAULT

.github/workflows/unicorn-keepalive.yml

  • Redenumit: 🔗 Unicorn Keep-Alive (Hetzner Health Check)
  • Eliminat step-ul "Check Vercel health" — monitorizează exclusiv Hetzner
  • Actualizat logica de evaluare a sănătății — platformă sănătoasă = Hetzner OK
  • Actualizat job summary — tabel cu o singură coloană (Hetzner)
  • Actualizat verify_recovery — re-probează doar Hetzner după SSH restart

UNICORN_FINAL/scripts/nginx-unicorn.conf

  • Adăugate zone de rate limiting Nginx: api (60r/min), auth (10r/min), conn_limit per IP
  • Adăugate security headers HTTP: X-Content-Type-Options, X-Frame-Options, X-XSS-Protection, Referrer-Policy
  • Adăugate location blocks separate pentru: /stream (SSE, no-buffer), /api/auth/ (rate limit strict, burst=15), /api/ (rate limit moderat), asset-uri statice (Cache-Control 7d), ruta default
  • Îmbunătățit gzip: gzip_vary on, gzip_proxied any, tipuri MIME suplimentare
  • Adăugat caching client-side pentru asset-uri statice (fără proxy_cache_valid care necesita zone proxy)

Verificare

  • ✅ Lint: node --check backend/index.js && node --check src/index.js
  • ✅ Teste: 26/26 passed (node test/health.test.js && node test/api.test.js)
  • ✅ YAML valid: ambele workflow-uri validare cu yaml.safe_load()

Copilot AI and others added 3 commits April 13, 2026 19:52
@vercel

vercel Bot commented Apr 13, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
zeusai Ready Ready Preview, Comment Apr 13, 2026 8:02pm

Request Review

@ruffy80 ruffy80 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Zeusai

@ruffy80 ruffy80 marked this pull request as ready for review April 13, 2026 20:14
@ruffy80 ruffy80 merged commit cdc8acb into main Apr 13, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants