https://github.com/dbtek/hls-rtmp-webplayer
Webplayer for hls/rtmp.
https://github.com/dbtek/hls-rtmp-webplayer
Last synced: 4 months ago
JSON representation
Webplayer for hls/rtmp.
- Host: GitHub
- URL: https://github.com/dbtek/hls-rtmp-webplayer
- Owner: dbtek
- Created: 2020-08-12T13:05:17.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2025-06-11T07:20:35.000Z (about 1 year ago)
- Last Synced: 2025-08-10T07:10:19.912Z (10 months ago)
- Language: HTML
- Homepage: https://live.yaman.gq
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## hls-rtmp-webplayer
RTMP server and hls player with SSL support.
### Run with Docker Compose
1. Save `docker-compose.yml` file into a directory.
2. Update `example.com` domain name usages inside `docker-compose.yml`.
3. Create a `conf` directory.
```bash
mkdir conf
```
4. Run services. And wait for swag to generate ssl certs.
```bash
docker compose up
```
5. Stop services.
6. Place proxy config into `conf/nginx/site-conf/site.conf`.
```
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name example.com;
include /config/nginx/ssl.conf;
client_max_body_size 0;
location / {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_app player;
set $upstream_port 80;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
}
location /hls {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_app rtmp;
set $upstream_port 8080;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
}
}
```
7. Run services again.
```bash
docker compose up -d
```