52 lines
1.2 KiB
Markdown
52 lines
1.2 KiB
Markdown
# ⚙️ Environment Variables Setup
|
|
|
|
## Nextcloud CalDAV hinzufügen
|
|
|
|
Füge diese Zeilen zu deiner `.env` Datei hinzu:
|
|
|
|
```bash
|
|
# Nextcloud CalDAV (Kalender-Synchronisation)
|
|
NEXTCLOUD_URL="https://cloud.savethemoment.photos"
|
|
NEXTCLOUD_USERNAME="SaveTheMoment-Atlas"
|
|
NEXTCLOUD_PASSWORD="T.H,Nwq>S\"83Vp7"
|
|
```
|
|
|
|
**WICHTIG**: Das Passwort enthält Sonderzeichen und muss in Anführungszeichen stehen!
|
|
|
|
## Komplette .env Datei
|
|
|
|
Deine `.env` sollte jetzt so aussehen:
|
|
|
|
```bash
|
|
DATABASE_URL="postgresql://dennisforte:IIBd4CIbWEOl@localhost:5432/savethemoment?schema=public"
|
|
NEXTAUTH_SECRET="dein-geheimer-schluessel-hier"
|
|
NEXTAUTH_URL="http://localhost:3001"
|
|
|
|
# KI & APIs
|
|
OPENAI_API_KEY="sk-proj-Y8di..."
|
|
LEXOFFICE_API_KEY="l7cpYvAp..."
|
|
GOOGLE_MAPS_API_KEY="AIzaSyCF..."
|
|
|
|
# Nextcloud CalDAV (NEU!)
|
|
NEXTCLOUD_URL="https://cloud.savethemoment.photos"
|
|
NEXTCLOUD_USERNAME="SaveTheMoment-Atlas"
|
|
NEXTCLOUD_PASSWORD="T.H,Nwq>S\"83Vp7"
|
|
|
|
# Cron Job Secret
|
|
CRON_SECRET="your-secure-random-string-here"
|
|
```
|
|
|
|
## Nach dem Hinzufügen:
|
|
|
|
1. Server neu starten:
|
|
```bash
|
|
npm run dev
|
|
```
|
|
|
|
2. Kalender-Verbindung testen:
|
|
```bash
|
|
curl http://localhost:3001/api/calendar/test
|
|
```
|
|
|
|
**Status**: ✅ Nextcloud CalDAV-Service implementiert!
|