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