Здесь показаны различия между двумя версиями данной страницы.
Следующая версия | Предыдущая версия | ||
tvip_key_server_installation [2018/04/20 16:31] Egor Danilenko создано |
tvip_key_server_installation [2020/02/28 09:19] (текущий) Egor Danilenko |
||
---|---|---|---|
Строка 3: | Строка 3: | ||
**WARNING:** TVIP cas-server in ALPHA stage, please report all bugs to support@tvip.ru | **WARNING:** TVIP cas-server in ALPHA stage, please report all bugs to support@tvip.ru | ||
- | ====Ubuntu 16.04 (recommended)==== | + | ====Ubuntu 18.04 (recommended)==== |
<code> | <code> | ||
Строка 16: | Строка 16: | ||
</code> | </code> | ||
- | ====Ubuntu 14.04 (not recommended)==== | ||
- | |||
- | <code> | ||
- | echo "deb http://deb.packages.tvip.ru/ xenial main" >> /etc/apt/sources.list.d/tms.list | ||
- | wget --quiet -O - http://deb.packages.tvip.ru/deploy/key.asc | apt-key add - | ||
- | |||
- | apt-get -y -q install software-properties-common | ||
- | add-apt-repository ppa:webupd8team/java | ||
- | add-apt-repository ppa:chris-lea/redis-server | ||
- | apt-get update | ||
- | apt-get install tvip-cas | ||
- | |||
- | ln -s /opt/tvip-cas/tvip-cas.jar /etc/init.d/tvip-cas | ||
- | |||
- | </code> | ||
===== Configuration ===== | ===== Configuration ===== | ||
- | Copy original /opt/tvip-cas/application-prod.yml.example to /opt/tvip-cas/application-prod.yml.example: | + | Copy original /opt/tvip-cas/application-prod.yml.example to /opt/tvip-cas/application-prod.yml: |
<code> | <code> | ||
cp /opt/tvip-cas/application-prod.yml.example /opt/tvip-cas/application-prod.yml | cp /opt/tvip-cas/application-prod.yml.example /opt/tvip-cas/application-prod.yml | ||
Строка 73: | Строка 58: | ||
requirepass REAL_REDIS_PASSWORD | requirepass REAL_REDIS_PASSWORD | ||
</code> | </code> | ||
+ | |||
+ | **After setup requirepass you must restart redis server for apply new settings** | ||
=== Attach Flussonic media server to Key server === | === Attach Flussonic media server to Key server === | ||
Строка 107: | Строка 94: | ||
- Private key for sign request from CAS server (defined in app section in /opt/tvip-cas/application-prod.yml). For prevent security violations that key must be redefined by yourself | - Private key for sign request from CAS server (defined in app section in /opt/tvip-cas/application-prod.yml). For prevent security violations that key must be redefined by yourself | ||
- Each TMS must be defined in tms-servers section of config file | - Each TMS must be defined in tms-servers section of config file | ||
- | - | + | |
After changes in config you must restart tvip-cas for applying settings, | After changes in config you must restart tvip-cas for applying settings, | ||
Строка 121: | Строка 108: | ||
On TMS side you must configure CAS in Settings -> CAS servers | On TMS side you must configure CAS in Settings -> CAS servers | ||
+ | |||
+ | === Flussonic channel configuration === | ||
+ | If you wish encode channel you must add drm directive to channel declaration. | ||
+ | Channel encoding available only for hls streams, other streams must be disabled for security reasons. | ||
+ | <code> | ||
+ | stream examplechannel{ | ||
+ | ... | ||
+ | ... | ||
+ | hds off; | ||
+ | rtmp off; | ||
+ | rtsp off; | ||
+ | dash off; | ||
+ | mpegts off; | ||
+ | drm aes128 keyserver=http://keys.example.net/cas-server; | ||
+ | } | ||
+ | </code> | ||
+ | |||
+ | === TMS channel configuration === | ||
+ | TMS require same channel name on flussonic and "System name" in Channel entity. For example below that name is examplechannel. Other settings of CAS for channel is no needed. | ||
+ | |||