Commit 04c7f705 authored by Hendrik Garske's avatar Hendrik Garske

Docs: Klarstellung zur Backend-Konfiguration

parent abcbbea3
......@@ -70,6 +70,8 @@ Die Anwendung läuft jetzt auf [http://localhost:3000](http://localhost:3000)
### Backend-Konfiguration
⚠️ **Das wg-easy Backend muss separat laufen!**
Die Anwendung versucht **automatisch**, das Backend zu finden. Es werden verschiedene URLs ausprobiert:
1. **Automatische Erkennung:**
......@@ -77,16 +79,18 @@ Die Anwendung versucht **automatisch**, das Backend zu finden. Es werden verschi
- `http://127.0.0.1:51821`
- `http://wg-easy:51821` (Docker Service-Name)
- `http://srv-captain--wg-easy:51821` (CapRover Service-Name)
- Weitere Varianten werden automatisch ausprobiert
2. **Optional - Environment Variables:**
- `WG_API_URL`: Falls das Backend nicht automatisch gefunden wird, kann die URL manuell gesetzt werden
- `WG_PASSWORD`: Backend-Passwort (Standard: `CoreX2024!Secure#VPN`)
2. **Falls Backend nicht gefunden wird:**
- Stelle sicher, dass das wg-easy Backend läuft
- Prüfe in CapRover, auf welcher URL/Port das Backend erreichbar ist
- Setze optional `WG_API_URL` als Environment Variable in CapRover auf die tatsächliche Backend-URL
**Standardwerte:**
- **WG_API_URL**: Automatische Erkennung (keine Konfiguration erforderlich!)
- **WG_API_URL**: Automatische Erkennung (keine Konfiguration erforderlich, wenn Backend auf Standard-Port läuft)
- **WG_PASSWORD**: `CoreX2024!Secure#VPN`
**Keine Konfiguration erforderlich** - die App findet das Backend automatisch!
**Hinweis:** Wenn das Backend nicht automatisch gefunden wird, setze `WG_API_URL` in CapRover als Environment Variable auf die tatsächliche Backend-URL (z.B. `http://srv-captain--backend-name:51821` oder externe URL).
## 🐳 Docker Setup
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment