Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
CoreX-wg-easy
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hendrik Garske
CoreX-wg-easy
Commits
70993869
Commit
70993869
authored
Dec 27, 2025
by
Hendrik Garske
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: WG API URL fuer CapRover Backend-Konfiguration angepasst
parent
6dea7a86
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
5 deletions
+26
-5
README.md
README.md
+15
-4
wg-api.ts
lib/wg-api.ts
+11
-1
No files found.
README.md
View file @
70993869
...
@@ -66,11 +66,22 @@ npm run dev
...
@@ -66,11 +66,22 @@ npm run dev
Die Anwendung läuft jetzt auf
[
http://localhost:3000
](
http://localhost:3000
)
Die Anwendung läuft jetzt auf
[
http://localhost:3000
](
http://localhost:3000
)
**Wichtig:**
Die Anwendung ist bereits vollständig konfiguriert mit:
**Wichtig:**
Die Anwendung benötigt eine WireGuard Easy Backend-Instanz.
-
**WG_API_URL**
:
`https://corex-wg-easy.corexmanagement.de`
-
**WG_PASSWORD**
:
`CoreX2024!Secure#VPN`
### Backend-Konfiguration
In CapRover muss das wg-easy Backend separat konfiguriert werden:
**Keine .env Datei erforderlich!**
Die Standardwerte sind direkt im Code konfiguriert.
1.
**Backend-URL**
: Setze
`WG_API_URL`
als Environment Variable in CapRover
-
Wenn Backend als CapRover Service:
`http://srv-captain--wg-easy-backend:51821`
-
Wenn Backend extern:
`http://corex-wg-easy.corexmanagement.de:51821`
-
Wenn Backend auf separater Subdomain:
`https://wg-easy-api.corexmanagement.de`
2.
**Backend-Passwort**
: Setze
`WG_PASSWORD`
als Environment Variable (Standard:
`CoreX2024!Secure#VPN`
)
**Standardwerte (wenn keine Environment Variables gesetzt):**
-
**WG_API_URL**
:
`http://srv-captain--wg-easy-backend:51821`
(interner CapRover Service-Name)
-
**WG_PASSWORD**
:
`CoreX2024!Secure#VPN`
## 🐳 Docker Setup
## 🐳 Docker Setup
...
...
lib/wg-api.ts
View file @
70993869
// WireGuard Easy API Client
// WireGuard Easy API Client
const
WG_API_URL
=
process
.
env
.
WG_API_URL
||
'https://corex-wg-easy.corexmanagement.de'
// WG API URL Konfiguration
// In CapRover: Das Frontend läuft auf Port 3000, das Backend muss separat konfiguriert sein
//
// Optionen für das Backend:
// 1. Backend als separater CapRover Service: Verwende den internen Service-Namen
// z.B. 'http://srv-captain--wg-easy-backend:51821' (wenn Backend als CapRover App läuft)
// 2. Backend extern auf Port: 'http://corex-wg-easy.corexmanagement.de:51821'
// 3. Backend auf separater Subdomain: 'https://wg-easy-api.corexmanagement.de'
//
// In CapRover: Setze WG_API_URL als Environment Variable für die App
const
WG_API_URL
=
process
.
env
.
WG_API_URL
||
'http://srv-captain--wg-easy-backend:51821'
const
WG_PASSWORD
=
process
.
env
.
WG_PASSWORD
||
'CoreX2024!Secure#VPN'
const
WG_PASSWORD
=
process
.
env
.
WG_PASSWORD
||
'CoreX2024!Secure#VPN'
interface
WgClient
{
interface
WgClient
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment