- Python 54.4%
- JavaScript 21.9%
- HTML 18.9%
- CSS 2.5%
- Dockerfile 1.8%
- Other 0.5%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| .github | ||
| locale | ||
| slspanel | ||
| static | ||
| streams | ||
| templates | ||
| tests | ||
| .env.example | ||
| .gitattributes | ||
| docker-compose.yml | ||
| Dockerfile | ||
| entrypoint.sh | ||
| LICENSE | ||
| manage.py | ||
| README.md | ||
| renovate.json | ||
| requirements.txt | ||
SLSPanel 🎥
A modern web-based control panel for the IRL SLS live streaming server. Manage your streams, monitor players, and track statistics with an intuitive interface.
✨ Features
- 📺 Stream Management - View and control live streams and connected players
- 🔗 Easy URL Access - Publishing and playback URLs with one-click copy functionality
- 📊 Real-Time Statistics - Monitor bitrate, latency, and connection quality
- 🔐 Optional Authentication - Configurable admin login via environment variable
- ⚙️ REST API Integration - Seamless communication with SLS server
- 🐳 Docker Ready - Easy deployment with Docker Compose
🚀 Quick Start
Prerequisites
- Docker and Docker Compose v2 installed
- Running SLS (srt-live-server) instance
- SLS API key
Installation with Docker Compose (Recommended)
- Clone the repository:
git clone https://github.com/AlexanderWagnerDev/slspanel-docker.git
cd slspanel-docker
- Either copy
.env.exampleto.envand edit it, or editdocker-compose.ymldirectly. The provided Compose file reads the variables from.envwhen present:
environment:
REQUIRE_LOGIN: "True" # Enable/disable authentication
USERNAME: "admin" # Admin username
PASSWORD: "supersecret" # Admin password
SLS_API_URL: "http://sls-api-url:8789" # Hostname reachable from the container
SLS_API_KEY: "your_api_key" # Your SLS API key
# ... more settings
When using .env, set SLS_LANG, SLS_ADMIN_USERNAME, and SLS_ADMIN_PASSWORD; the Compose file maps them to the container's LANG, USERNAME, and PASSWORD. Docker Compose v2 (docker compose) is required; Compose v1 may interpolate $ inside quoted .env values and change passwords. Do not commit the real .env because it contains credentials.
- Start the container:
docker compose up -d
- Access the panel at
http://localhost:8000
Installation with Docker Run
For manual deployment:
docker run -d \
--name slspanel \
-e REQUIRE_LOGIN=True \
-e USERNAME=admin \
-e PASSWORD=supersecret \
-e SLS_API_URL=http://sls-api-url:8789 \
-e SLS_API_KEY=your_api_key \
-e SLS_DOMAIN_IP=localhost \
-e LANG=en \
-e TZ=Europe/Vienna \
-e SRT_PUBLISH_PORT=4001 \
-e SRT_PLAYER_PORT=4000 \
-e SRTLA_PUBLISH_PORT=5000 \
-e SLS_STATS_PORT=8789 \
-p 8000:8000/tcp \
alexanderwagnerdev/slspanel:latest
⚙️ Configuration
Environment Variables
| Variable | Description | Default | Required |
|---|---|---|---|
REQUIRE_LOGIN |
Enable authentication (True/False) |
False |
No |
USERNAME |
Admin username | admin |
If login enabled |
PASSWORD |
Admin password | - | If login enabled |
SLS_API_URL |
SLS server API endpoint | - | Yes |
SLS_API_KEY |
SLS API authentication key | - | Yes |
SLS_DOMAIN_IP |
Domain or IP for stream URLs | localhost |
Yes |
LANG |
Interface language (en/de) |
en |
No |
TZ |
Timezone | UTC |
No |
SRT_PUBLISH_PORT |
SRT publishing port | 4001 |
Yes |
SRT_PLAYER_PORT |
SRT playback port | 4000 |
Yes |
SRTLA_PUBLISH_PORT |
SRTLA publishing port | 5000 |
Yes |
SLS_STATS_DOMAIN_IP |
Internal domain or IP used by the panel for statistics | SLS_DOMAIN_IP |
No |
SLS_STATS_PUBLIC_DOMAIN_IP |
Public domain or IP used in copied statistics URLs | SLS_STATS_DOMAIN_IP |
No |
SLS_STATS_SCHEME |
Scheme for statistics URLs (http/https) |
http |
No |
SLS_STATS_PORT |
SLS statistics port | 8789 |
Yes |
When REQUIRE_LOGIN=True, PASSWORD must be non-empty and must not be the literal example password password. The container refuses to start otherwise. If an existing database still contains a superuser with the example password, startup also fails and asks the operator to change or deactivate that account. That legacy account is not modified automatically; the configured operator account is created or updated before this check. Because the SQLite database is ephemeral, recreating the container also starts from a fresh database.
Example Configuration
Minimal setup without authentication:
environment:
REQUIRE_LOGIN: "False"
SLS_API_URL: "http://sls-server:8789"
SLS_API_KEY: "myapikey123"
SLS_DOMAIN_IP: "streaming.example.com"
🔧 Troubleshooting
Cannot connect to SLS server
- Verify
SLS_API_URLis correct and reachable from the container - Use a hostname or IP reachable from the container;
localhostinside the container is the panel container, not the Docker host - Check if
SLS_API_KEYmatches your SLS configuration - Ensure SLS server is running and API is enabled
Login not working
- Verify
REQUIRE_LOGINis set toTrue - Check
USERNAMEandPASSWORDare configured - Clear browser cache and cookies
View container logs
docker compose logs -f slspanel
📝 License
This project is licensed under the MIT License - see the LICENSE file for details.
🤝 Support
For questions, issues, or feature requests:
- Open an issue on GitHub
- Check existing issues for solutions
🔗 Related Projects
- SRTLA Server Docker - The streaming server this panel manages
SLSPanel 🎥
[Deutsche Version]
Ein modernes webbasiertes Control Panel für den IRL SLS Live-Streaming-Server. Verwalte deine Streams, überwache Player und tracke Statistiken mit einer intuitiven Benutzeroberfläche.
✨ Features
- 📺 Stream-Verwaltung - Live-Streams und verbundene Player anzeigen und steuern
- 🔗 Einfacher URL-Zugriff - Publishing- und Playback-URLs mit Ein-Klick-Kopierfunktion
- 📊 Echtzeit-Statistiken - Bitrate, Latenz und Verbindungsqualität überwachen
- 🔐 Optionale Authentifizierung - Konfigurierbarer Admin-Login per Umgebungsvariable
- ⚙️ REST-API-Integration - Nahtlose Kommunikation mit dem SLS-Server
- 🐳 Docker-Ready - Einfaches Deployment mit Docker Compose
🚀 Schnellstart
Voraussetzungen
- Docker und Docker Compose v2 installiert
- Laufende SLS (srt-live-server) Instanz
- SLS API-Key
Installation mit Docker Compose (Empfohlen)
- Repository klonen:
git clone https://github.com/AlexanderWagnerDev/slspanel-docker.git
cd slspanel-docker
- Entweder
.env.examplenach.envkopieren und bearbeiten oderdocker-compose.ymldirekt bearbeiten. Die mitgelieferte Compose-Datei liest die Variablen aus.env, falls vorhanden:
environment:
REQUIRE_LOGIN: "True" # Authentifizierung aktivieren/deaktivieren
USERNAME: "admin" # Admin-Benutzername
PASSWORD: "supersecret" # Admin-Passwort
SLS_API_URL: "http://sls-api-url:8789" # Vom Container erreichbarer Hostname
SLS_API_KEY: "your_api_key" # Dein SLS API-Key
# ... weitere Einstellungen
Bei Verwendung von .env SLS_LANG, SLS_ADMIN_USERNAME und SLS_ADMIN_PASSWORD setzen; die Compose-Datei überträgt sie auf LANG, USERNAME und PASSWORD des Containers. Docker Compose v2 (docker compose) ist erforderlich; Compose v1 kann $ in gequoteten .env-Werten interpolieren und Passwörter verändern. Die echte .env nicht committen, da sie Zugangsdaten enthält.
- Container starten:
docker compose up -d
- Panel unter
http://localhost:8000aufrufen
Installation mit Docker Run
Für manuelles Deployment:
docker run -d \
--name slspanel \
-e REQUIRE_LOGIN=True \
-e USERNAME=admin \
-e PASSWORD=supersecret \
-e SLS_API_URL=http://sls-api-url:8789 \
-e SLS_API_KEY=your_api_key \
-e SLS_DOMAIN_IP=localhost \
-e LANG=de \
-e TZ=Europe/Vienna \
-e SRT_PUBLISH_PORT=4001 \
-e SRT_PLAYER_PORT=4000 \
-e SRTLA_PUBLISH_PORT=5000 \
-e SLS_STATS_PORT=8789 \
-p 8000:8000/tcp \
alexanderwagnerdev/slspanel:latest
⚙️ Konfiguration
Umgebungsvariablen
| Variable | Beschreibung | Standard | Erforderlich |
|---|---|---|---|
REQUIRE_LOGIN |
Authentifizierung aktivieren (True/False) |
False |
Nein |
USERNAME |
Admin-Benutzername | admin |
Bei Login |
PASSWORD |
Admin-Passwort | - | Bei Login |
SLS_API_URL |
SLS-Server API-Endpunkt | - | Ja |
SLS_API_KEY |
SLS API-Authentifizierungsschlüssel | - | Ja |
SLS_DOMAIN_IP |
Domain oder IP für Stream-URLs | localhost |
Ja |
LANG |
Sprache der Oberfläche (en/de) |
en |
Nein |
TZ |
Zeitzone | UTC |
Nein |
SRT_PUBLISH_PORT |
SRT Publishing-Port | 4001 |
Ja |
SRT_PLAYER_PORT |
SRT Playback-Port | 4000 |
Ja |
SRTLA_PUBLISH_PORT |
SRTLA Publishing-Port | 5000 |
Ja |
SLS_STATS_DOMAIN_IP |
Interne Domain oder IP für Statistik-Aufrufe des Panels | SLS_DOMAIN_IP |
Nein |
SLS_STATS_PUBLIC_DOMAIN_IP |
Öffentliche Domain oder IP in kopierten Statistik-URLs | SLS_STATS_DOMAIN_IP |
Nein |
SLS_STATS_SCHEME |
Schema für Statistik-URLs (http/https) |
http |
Nein |
SLS_STATS_PORT |
SLS Statistik-Port | 8789 |
Ja |
Wenn REQUIRE_LOGIN=True gesetzt ist, muss PASSWORD nicht leer und darf nicht das literale Beispielpasswort password sein. Der Container startet sonst nicht. Enthält eine bestehende Datenbank noch einen Superuser mit dem Beispielpasswort, schlägt der Start ebenfalls fehl und fordert den Betreiber auf, dieses Konto zu ändern oder zu deaktivieren. Dieses Altkonto wird nicht automatisch verändert; das konfigurierte Betreiberkonto wird vor dieser Prüfung erstellt oder aktualisiert. Da die SQLite-Datenbank ephemer ist, startet auch ein neu erstellter Container mit einer frischen Datenbank.
Beispiel-Konfiguration
Minimale Einrichtung ohne Authentifizierung:
environment:
REQUIRE_LOGIN: "False"
SLS_API_URL: "http://sls-server:8789"
SLS_API_KEY: "myapikey123"
SLS_DOMAIN_IP: "streaming.example.com"
🔧 Fehlerbehebung
Verbindung zum SLS-Server nicht möglich
- Überprüfe, ob
SLS_API_URLkorrekt ist und vom Container aus erreichbar - Prüfe, ob
SLS_API_KEYmit deiner SLS-Konfiguration übereinstimmt - Stelle sicher, dass der SLS-Server läuft und die API aktiviert ist
Login funktioniert nicht
- Überprüfe, ob
REQUIRE_LOGINaufTruegesetzt ist - Prüfe, ob
USERNAMEundPASSWORDkonfiguriert sind - Lösche Browser-Cache und Cookies
Container-Logs anzeigen
docker compose logs -f slspanel
📝 Lizenz
Dieses Projekt ist unter der MIT-Lizenz lizenziert - siehe LICENSE Datei für Details.
🤝 Support
Für Fragen, Probleme oder Feature-Requests:
- Öffne ein Issue auf GitHub
- Prüfe bestehende Issues für Lösungen
🔗 Verwandte Projekte
- SRTLA Server Docker - Der Streaming-Server, den dieses Panel verwaltet