Skip to Content

Deployment

Public-safe checklist for the production stack on mohamedlakssirt.tech. Secrets belong in .env on the server and in Vercel env — never in this documentation.

DNS (get.tech)

HostTypeTarget
multibot-apiAHetzner VPS IPv4
multibot-apiAAAAOptional Hetzner IPv6
analyticsCNAMEValue shown in Vercel → Project → Domains
_vercelTXTOnly if Vercel requests domain verification
dig +short multibot-api.mohamedlakssirt.tech A
dig +short analytics.mohamedlakssirt.tech CNAME

Deprecated: discord-multibot A record and *.joker69studio.dev — do not use for this stack.

Hetzner (Discord-MultiBot)

  1. Ubuntu/Debian VPS with Docker and Docker Compose.
  2. Clone Discord-MultiBot, copy .env.example → .env.
  3. Set DISCORD_TOKEN, OPENAI_API_KEY, API_KEY, MONGODB_URI, Appwrite APPWRITE_* vars, and:
API_BASE_URL=https://multibot-api.mohamedlakssirt.tech
ALLOWED_ORIGINS=https://analytics.mohamedlakssirt.tech,https://mohamedlakssirt.tech,http://localhost:3000
PORT=3001
  1. docker compose up -d --build
  2. Install Caddy; use deploy/Caddyfile from the repo for Let's Encrypt on multibot-api.mohamedlakssirt.tech.
  3. Optional: cron scripts/keep-alive.sh for health polling.

See the repo file deploy/HETZNER.md for full steps.

Vercel (discord-multibot-analytics)

  1. Link project discord-multibot-analytics (monorepo root directory = that folder if importing from a parent repo).
  2. Build: pnpm build · Install: pnpm install --frozen-lockfile
  3. Copy env vars from discord-multibot-analytics/.env.example into Vercel Production.
  4. Add custom domain analytics.mohamedlakssirt.tech and complete DNS at get.tech.
  5. Set API_PROXY_TARGET=https://multibot-api.mohamedlakssirt.tech on server-side env.

Appwrite

  • Register web platforms: analytics.mohamedlakssirt.tech, multibot-api.mohamedlakssirt.tech, localhost.
  • Server API keys (Vercel + Hetzner): scopes for databases.*, teams.*, users.read as required by your bootstrap scripts.
  • Configure Auth SMTP for transactional email (verification, recovery).

Smoke tests

curl -sS https://multibot-api.mohamedlakssirt.tech/health
# With machine API key from your secure env:
curl -sS -H "x-api-key: $API_KEY" https://multibot-api.mohamedlakssirt.tech/api/metrics

Sign in at analytics.mohamedlakssirt.tech and confirm metrics/logs load via the BFF (browser Network tab should hit /discord-api/..., not the Hetzner host directly).

CI/CD

Discord-MultiBot deploys to Hetzner on pushes to master via GitHub Actions (self-hosted runner). Analytics deploys through Vercel’s Git integration.

Back to overview · Architecture

On this page