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)
| Host | Type | Target |
|---|---|---|
multibot-api | A | Hetzner VPS IPv4 |
multibot-api | AAAA | Optional Hetzner IPv6 |
analytics | CNAME | Value shown in Vercel → Project → Domains |
_vercel | TXT | Only if Vercel requests domain verification |
dig +short multibot-api.mohamedlakssirt.tech A
dig +short analytics.mohamedlakssirt.tech CNAMEDeprecated: discord-multibot A record and *.joker69studio.dev — do not use for this stack.
Hetzner (Discord-MultiBot)
- Ubuntu/Debian VPS with Docker and Docker Compose.
- Clone Discord-MultiBot, copy
.env.example→.env. - Set
DISCORD_TOKEN,OPENAI_API_KEY,API_KEY,MONGODB_URI, AppwriteAPPWRITE_*vars, and:
API_BASE_URL=https://multibot-api.mohamedlakssirt.tech
ALLOWED_ORIGINS=https://analytics.mohamedlakssirt.tech,https://mohamedlakssirt.tech,http://localhost:3000
PORT=3001docker compose up -d --build- Install Caddy; use
deploy/Caddyfilefrom the repo for Let's Encrypt onmultibot-api.mohamedlakssirt.tech. - Optional: cron
scripts/keep-alive.shfor health polling.
See the repo file deploy/HETZNER.md for full steps.
Vercel (discord-multibot-analytics)
- Link project
discord-multibot-analytics(monorepo root directory = that folder if importing from a parent repo). - Build:
pnpm build· Install:pnpm install --frozen-lockfile - Copy env vars from
discord-multibot-analytics/.env.exampleinto Vercel Production. - Add custom domain
analytics.mohamedlakssirt.techand complete DNS at get.tech. - Set
API_PROXY_TARGET=https://multibot-api.mohamedlakssirt.techon 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.readas 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/metricsSign 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.