Commit bb701dd2 authored by Hendrik Garske's avatar Hendrik Garske

config: Server-URL und Passwort als Standardwerte konfiguriert

parent 037d854d
Pipeline #27 canceled with stages
......@@ -31,9 +31,9 @@ yarn-error.log*
.pnpm-debug.log*
# env files (can opt-in for committing if needed)
.env*
.env.local
.env*.local
!env.example
# vercel
.vercel
......
......@@ -76,18 +76,16 @@ docker run -d \
weejewel/wg-easy
```
### 4. Umgebungsvariablen konfigurieren (Optional)
### 4. Umgebungsvariablen konfigurieren
Erstellen Sie eine `.env.local` Datei:
Eine `.env.local` Datei ist bereits vorhanden mit den Standardwerten.
```env
WG_API_URL=http://localhost:51821
WG_PASSWORD=YOUR_PASSWORD
```
**Aktuelle Konfiguration:**
- `WG_API_URL`: `https://corex-wg-easy.corexmanagement.de`
- `WG_PASSWORD`: Automatisch generiert (in .env.local)
**Standardwerte:**
- `WG_API_URL`: `http://localhost:51821`
- `WG_PASSWORD`: leer (falls kein Passwort gesetzt)
**Für lokale Entwicklung:**
Sie können die `.env.local` Datei bearbeiten, um andere Werte zu verwenden.
### 5. Development Server starten
......
// WireGuard Easy API Client
const WG_API_URL = process.env.WG_API_URL || 'http://localhost:51821'
const WG_PASSWORD = process.env.WG_PASSWORD || ''
const WG_API_URL = process.env.WG_API_URL || 'https://corex-wg-easy.corexmanagement.de'
const WG_PASSWORD = process.env.WG_PASSWORD || 'CoreX2024!Secure#VPN'
interface WgClient {
id: string
......
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