23-01-2026
This commit is contained in:
parent
07959c0ba2
commit
854ce02bf6
166 changed files with 32909 additions and 1262 deletions
60
dev/b2in-layout-v10/ENV_VARIABLES_DISPLAY.md
Normal file
60
dev/b2in-layout-v10/ENV_VARIABLES_DISPLAY.md
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
# Display Umgebungsvariablen
|
||||
|
||||
Fügen Sie diese Variablen zu Ihrer `.env` Datei hinzu:
|
||||
|
||||
## Testserver (portal.b2in)
|
||||
|
||||
```env
|
||||
# Display Configuration - Testserver
|
||||
DISPLAY_BASE_PATH=_cabinet
|
||||
DISPLAY_SUBDOMAIN=
|
||||
DISPLAY_DOMAIN=b2in.test
|
||||
```
|
||||
|
||||
**Resultierende URLs:**
|
||||
- Display-Seite: `http://portal.b2in.test/_cabinet/`
|
||||
- Short-URLs: `http://portal.b2in.test/_cabinet/go.php?z=abc123`
|
||||
- API: `http://portal.b2in.test/api/display/config`
|
||||
|
||||
## Live-Server (cabinet.b2in.eu)
|
||||
|
||||
```env
|
||||
# Display Configuration - Live-Server
|
||||
DISPLAY_BASE_PATH=_cabinet
|
||||
DISPLAY_SUBDOMAIN=cabinet
|
||||
DISPLAY_DOMAIN=b2in.eu
|
||||
APP_ENV=production
|
||||
```
|
||||
|
||||
**Resultierende URLs:**
|
||||
- Display-Seite: `https://cabinet.b2in.eu/`
|
||||
- Short-URLs: `https://cabinet.b2in.eu/go.php?z=abc123`
|
||||
- API: `https://cabinet.b2in.eu/api/display/config` oder `https://b2in.eu/api/display/config`
|
||||
|
||||
## Vereinfachtes System
|
||||
|
||||
Das System nutzt jetzt nur noch den Ordner `public/_cabinet/` für beide Umgebungen:
|
||||
|
||||
- **Testserver:** Zugriff über `/_cabinet/` Pfad
|
||||
- **Live-Server:** Subdomain zeigt direkt auf `/_cabinet/`
|
||||
|
||||
Beide Umgebungen teilen sich denselben Code-Pfad, nur die URLs unterscheiden sich.
|
||||
|
||||
## Wie es funktioniert
|
||||
|
||||
1. **Mit DISPLAY_SUBDOMAIN gesetzt (Live):**
|
||||
- Generiert absolute URLs: `https://cabinet.b2in.eu/go.php?z=...`
|
||||
- Subdomain zeigt auf `public/_cabinet/`
|
||||
|
||||
2. **Ohne DISPLAY_SUBDOMAIN (Test):**
|
||||
- Generiert URLs mit Pfad: `http://portal.b2in.test/_cabinet/go.php?z=...`
|
||||
- Zugriff über Hauptdomain mit Unterordner
|
||||
|
||||
## Nach Änderungen
|
||||
|
||||
Cache immer leeren:
|
||||
|
||||
```bash
|
||||
php artisan config:clear
|
||||
php artisan cache:clear
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue