fix: use HTTPS API URL with Nginx proxy
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
# Nginx Proxy Manager Konfiguration (Einfach)
|
||||
|
||||
## Schritt 1: Proxy Host erstellen
|
||||
|
||||
1. Nginx Proxy Manager öffnen (http://deine-unraid-ip:81)
|
||||
2. **Proxy Hosts** → **Add Proxy Host**
|
||||
|
||||
**Details:**
|
||||
- Domain Names: `rce.playman.top`
|
||||
- Scheme: `http`
|
||||
- Forward Hostname: `192.168.101.42`
|
||||
- Forward Port: `10001`
|
||||
- Block Common Exploits: ✅
|
||||
|
||||
**SSL:**
|
||||
- SSL Certificate: Request a new SSL Certificate
|
||||
- Force SSL: ✅
|
||||
- HTTP/2 Support: ✅
|
||||
- Save
|
||||
|
||||
## Schritt 2: API Weiterleitung
|
||||
|
||||
Auf den Host klicken (Edit) → **Advanced** Tab:
|
||||
|
||||
**Custom Locations:**
|
||||
|
||||
```nginx
|
||||
location /api {
|
||||
proxy_pass http://192.168.101.42:10002;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
}
|
||||
```
|
||||
|
||||
**Save**
|
||||
|
||||
## Fertig!
|
||||
|
||||
- Frontend: https://rce.playman.top
|
||||
- Backend intern: https://rce.playman.top/api/v1
|
||||
+1
-1
@@ -1 +1 @@
|
||||
NEXT_PUBLIC_API_URL=http://192.168.101.42:10002/api/v1
|
||||
NEXT_PUBLIC_API_URL=https://rce.playman.top/api/v1
|
||||
|
||||
Reference in New Issue
Block a user