60 lines
1.5 KiB
Markdown
60 lines
1.5 KiB
Markdown
# 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
|
|
```
|