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
ad73fe4c
Commit
ad73fe4c
authored
Dec 27, 2025
by
Hendrik Garske
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: WG API URL auf localhost geaendert fuer gleiche CapRover App
parent
70993869
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
16 deletions
+13
-16
README.md
README.md
+7
-7
wg-api.ts
lib/wg-api.ts
+6
-9
No files found.
README.md
View file @
ad73fe4c
...
...
@@ -70,17 +70,17 @@ Die Anwendung läuft jetzt auf [http://localhost:3000](http://localhost:3000)
### Backend-Konfiguration
In CapRover muss das wg-easy Backend separat konfiguriert werd
en:
Wenn Frontend und Backend in der
**gleichen CapRover App**
lauf
en:
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`
1.
**Backend-URL**
: Standardmäßig verwendet die App
`http://localhost:51821`
-
Falls das Backend als separater Container im Stack läuft, verwende den Service-Namen
-
In CapRover kann optional
`WG_API_URL`
als Environment Variable gesetzt werden
2.
**Backend-Passwort**
: Setze
`WG_PASSWORD`
als Environment Variable (Standard:
`CoreX2024!Secure#VPN`
)
2.
**Backend-Passwort**
: Standard ist
`CoreX2024!Secure#VPN`
-
Optional:
`WG_PASSWORD`
als Environment Variable in CapRover setzen
**Standardwerte (wenn keine Environment Variables gesetzt):**
-
**WG_API_URL**
:
`http://
srv-captain--wg-easy-backend:51821`
(interner CapRover Service-Name
)
-
**WG_API_URL**
:
`http://
localhost:51821`
(für gleiche CapRover App
)
-
**WG_PASSWORD**
:
`CoreX2024!Secure#VPN`
## 🐳 Docker Setup
...
...
lib/wg-api.ts
View file @
ad73fe4c
// WireGuard Easy API Client
// WG API URL Konfiguration
// In CapRover: Das Frontend läuft auf Port 3000, das Backend muss separat konfiguriert sein
// Wenn Frontend und Backend in der gleichen CapRover App laufen:
// - Backend ist über localhost erreichbar (gleicher Container) oder
// - Backend läuft als interner Service auf Port 51821
//
// 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'
// Standard: localhost:51821 (wenn beide im gleichen Container)
// Alternative: Wenn Backend als separater Container im Stack läuft, verwende den Service-Namen
const
WG_API_URL
=
process
.
env
.
WG_API_URL
||
'http://localhost:51821'
const
WG_PASSWORD
=
process
.
env
.
WG_PASSWORD
||
'CoreX2024!Secure#VPN'
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