expressjs -> nextjs

This commit is contained in:
Ludwig Lehnert
2026-03-27 19:50:53 +01:00
parent bcaec8636d
commit 8b937eee72
34 changed files with 3769 additions and 3078 deletions

View File

@@ -1,3 +1,27 @@
# lehnert.cloud/files
File server infrastructure hosted on [files.lehnert.cloud](https://files.lehnert.cloud).
## Komponenten
- `webserver` (Apache) stellt das öffentliche Dateiverzeichnis bereit
- `nextjs` enthält die Next.js-App für Verwaltung und Authentifizierung
- `traefik` übernimmt TLS und Routing
## Management-UI
- Benutzer-Dashboard: `/manage/login`
- Admin-Dashboard: `/manage/admin`
- Datei-Downloads: `/_share/<datei>`
## Lokale Initialisierung
```bash
./initialize.sh
```
Danach:
1. `.env` anpassen (`SERVICE_FQDN`, `LETSENCRYPT_EMAIL`, `DATA_DIR`, `UPLOAD_TTL_SECONDS`, `MANAGEMENT_ADMIN_HASH`, optional `UPLOAD_MAX_BYTES` und `COOKIE_SECURE`)
2. Stack starten: `docker compose up --build`
3. Als Admin anmelden und Benutzer über die UI anlegen