2023-12-31 02:30:04 +00:00
|
|
|
# Television
|
2023-12-31 06:16:42 +02:00
|
|
|
Multi channel stream setup with Flask REST API for scheduling channels.
|
2024-01-04 22:57:03 +02:00
|
|
|
|
2024-01-17 06:41:16 +02:00
|
|
|
### Install
|
|
|
|
1. `cp variables.env.dist variables.env` and set the required variables
|
2025-01-28 18:13:50 +00:00
|
|
|
|
|
|
|
2. Start the acme-sh service:
|
|
|
|
`docker-compose up -d acme-sh`
|
|
|
|
|
|
|
|
3. Register acme account:
|
|
|
|
`source variables.env; docker exec acme.sh --register-account -m $EMAIL`
|
|
|
|
|
|
|
|
4. Set the `ACCOUNT_THUMBPRINT` variable
|
|
|
|
|
|
|
|
5. Run the stack using `docker-compose up -d --build --remove-orphans`
|
|
|
|
|
|
|
|
6. Issue a certificate:
|
2025-01-29 17:11:08 +00:00
|
|
|
`source variables.env; docker exec acme.sh --issue -d $BASE_URL -d $CORE_API_HOSTNAME --stateless`
|
2025-01-28 18:13:50 +00:00
|
|
|
|
|
|
|
7. Install the certificate:
|
2025-01-29 13:18:49 +00:00
|
|
|
`source variables.env; docker exec acme.sh --install-cert -d $BASE_URL --reloadcmd "cat \$CERT_KEY_PATH \$CERT_FULLCHAIN_PATH > /certificates/$BASE_URL.pem"`
|
2025-01-28 18:13:50 +00:00
|
|
|
|
|
|
|
8. Reastart haproxy container:
|
|
|
|
`docker kill -s USR2 haproxy`
|
|
|
|
|
|
|
|
9. Set crontab:
|
|
|
|
`0 0 1 * * docker exec acme.sh --cron && docker kill -s USR2 haproxy`
|
2024-01-13 03:26:24 +02:00
|
|
|
|
2024-01-17 06:41:16 +02:00
|
|
|
### Usage
|
|
|
|
1. Access the admin panel at `https://stream.example.com/ui`
|
2024-01-19 05:38:19 +02:00
|
|
|
2. Access the recordings gallery at `https://tv.example.com/gallery`
|
2024-01-17 06:41:16 +02:00
|
|
|
|
|
|
|
### EPG stream priorities
|
2024-01-17 06:42:29 +02:00
|
|
|
- prio = 0 - scheduled
|
|
|
|
- prio = 1 - live
|
|
|
|
- prio = 2 - live and vod recording
|