config | ||
src | ||
.gitignore | ||
docker-compose.yml | ||
init.sh | ||
LICENSE | ||
README.md | ||
variables.env.dist |
Television
Multi channel stream setup with Flask REST API for scheduling channels.
Install
-
cp variables.env.dist variables.env
and set the required variables -
Start the acme-sh service:
docker-compose up -d acme-sh
-
Register acme account:
source variables.env; docker exec acme.sh --register-account -m $EMAIL
-
Set the
ACCOUNT_THUMBPRINT
variable -
Run the stack using
docker-compose up -d --build --remove-orphans
-
Issue a certificate:
source variables.env; docker exec acme.sh --issue -d $BASE_URL -d $CORE_HOSTNAME --stateless
-
Install the certificate:
source variables.env; docker exec acme.sh --install-cert -d $BASE_URL --reloadcmd "cat \$CERT_KEY_PATH \$CERT_FULLCHAIN_PATH > /certificates/$BASE_URL.pem"
-
Reastart haproxy container:
docker kill -s USR2 haproxy
-
Set crontab:
0 0 1 * * docker exec acme.sh --cron && docker kill -s USR2 haproxy
Usage
- Access the admin panel at
https://stream.example.com/ui
- Access the recordings gallery at
https://tv.example.com/gallery
EPG stream priorities
- prio = 0 - scheduled
- prio = 1 - live
- prio = 2 - live and vod recording