Commit Graph
18 Commits
Author SHA1 Message Date
Moh 0f436ec05a FIXED - Drop leftover Prisma ?schema=public from the DB URL
CI / quality (push) Waiting to run
- postgres.js forwarded schema as a startup param; Postgres rejected the connection
- Remove ?schema=public from docker-compose, CI, and the client default
- Strip any query string in lib/db/index.ts so this cannot recur
2026-08-08 03:04:26 +02:00
Moh 61a58b31a7 CONFIGURED - Wire docker-compose to Traefik for first deploy
CI / quality (push) Waiting to run
- Join the app to the external proxy network and drop the published host port
- Add Traefik labels for mohfarawati.de, www, and root.mohfarawati.de
- Parametrize network/entrypoint/certresolver via TRAEFIK_* env with sane defaults
- Pass ADMIN_HOST to the app and document production env in .env.example
2026-08-08 02:33:09 +02:00
MOH cc6db94977 Merge branch 'main' of https://git.mohfarawati.de/mohs/sass-mohfarawati
CI / quality (push) Has been cancelled
2026-05-23 09:47:30 +02:00
MOH 8add8b018a Fix local admin routing and landing styles 2026-05-12 08:17:55 +02:00
mohs 7041cefca4 Enable init for app container
CI / quality (push) Has been cancelled
2026-04-24 17:19:38 +00:00
MOHandClaude Sonnet 4.6 f490133345 Harden security, fix rate-limiting, and rename proxy
CI / quality (push) Has been cancelled
- Move admin login lockout from client cookie to AppConfig (DB), keyed
  by hashed client IP — clearing browser cookies no longer bypasses it
- Replace rate-limit $transaction (TOCTOU) with atomic SQL
  INSERT...ON CONFLICT...RETURNING; add stale-entry cleanup on each
  submission to prevent table bloat
- Add 5 s module-level cache for middleware runtime state fetch, reducing
  per-request DB roundtrips
- Rename middleware.ts → proxy.ts to resolve Next.js 16 deprecation
  warning; update test import accordingly
- Require ADMIN_PASSWORD, ADMIN_AUTH_SECRET, ADMIN_BASIC_AUTH_USER, and
  ADMIN_BASIC_AUTH_PASS in docker-compose.yml (:? syntax) — startup
  fails loudly instead of using placeholder defaults
- Add set -e and informative echo lines to Dockerfile CMD for clearer
  startup failure attribution
- Export requireAdminAuth() from lib/admin-auth for centralised use in
  admin pages
- Add CLAUDE.md with architecture notes and working rules

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-17 22:05:50 +01:00
MOH 635d54cb0e Use internal origin for runtime locale state
CI / quality (push) Waiting to run
2026-03-15 08:33:27 +01:00
MOH bfd7adccac Expose site URL to app container
CI / quality (push) Waiting to run
2026-03-13 16:26:14 +01:00
MOH db897e22bf Refactor admin area and remove legacy root paths
CI / quality (push) Waiting to run
2026-03-13 16:14:04 +01:00
MOH 87a597c872 Move admin area to root subdomain
CI / quality (push) Waiting to run
2026-03-12 00:15:12 +01:00
MOH ead75769ef fix(deploy): use traefik websecure entrypoint with tls for mohfarawati.de
CI / quality (push) Waiting to run
2026-03-07 16:36:08 +01:00
MOH 0f9f9e5f79 Add production-ready media library
CI / quality (push) Waiting to run
2026-03-07 16:20:11 +01:00
MOH 1ad9ae9629 chore(deploy): simplify traefik router to web and clean compose naming
CI / quality (push) Waiting to run
2026-03-06 17:15:19 +01:00
MOH a2b0f14338 fix(deploy): restore traefik websecure tls router settings
CI / quality (push) Waiting to run
2026-03-06 16:59:30 +01:00
MOH ce63cd8b69 feat(ui): admin-only root link and shared header navigation
CI / quality (push) Waiting to run
2026-03-06 16:50:45 +01:00
MOH 631479d02d Add safe DATABASE_URL fallback for container startup migrations
CI / quality (push) Waiting to run
2026-03-06 15:24:43 +01:00
MOH 725a1c1669 chore: align Traefik proxy setup and production deploy workflow
CI / quality (push) Waiting to run
2026-03-06 14:39:03 +01:00
MOH f86b7f39f7 feat: initialize mohfarawati app foundation
CI / quality (push) Waiting to run
2026-03-06 13:53:57 +01:00