summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/examples/elevate2018.yml4
-rwxr-xr-xsrc/flufigut.py8
2 files changed, 10 insertions, 2 deletions
diff --git a/src/examples/elevate2018.yml b/src/examples/elevate2018.yml
index 61f9e51..443df97 100644
--- a/src/examples/elevate2018.yml
+++ b/src/examples/elevate2018.yml
@@ -13,8 +13,8 @@ globals:
password: change-me
stats:
sfive-proxy:
- socket: "/var/run/sfive/pipegram"
- duration: 15
+ socket: "/srv/hub.sock"
+ duration: 15s
tags: [ "elevate", "2018", "discourse" ]
resolutions:
1080p25: { width: 1920, height: 1080, rate: 25/1 }
diff --git a/src/flufigut.py b/src/flufigut.py
index 9cc08ce..208d742 100755
--- a/src/flufigut.py
+++ b/src/flufigut.py
@@ -721,6 +721,14 @@ class K8sDeployment:
proxy_conf['backends'] = {}
proxy_conf['backends']['/hls/'] = {'connect': 'http://nginx-streamer-' + worker['name'] + ':8000'}
proxy_conf['backends']['/dash/'] = {'connect': 'http://nginx-streamer-' + worker['name'] + ':8000'}
+
+ proxy_conf['sfive'] = {'hostname': worker['name']}
+ proxy_conf['sfive']['socket'] = self._desc.globals['stats']['sfive-proxy']['socket']
+ proxy_conf['sfive']['duration'] = self._desc.globals['stats']['sfive-proxy']['duration']
+ proxy_conf['sfive']['tags'] = self._desc.globals['stats']['sfive-proxy']['tags']
+ proxy_conf['sfive']['matches'] = [{'format': '/${content}-${format}-${quality}', 'streams': 'av-orig/flash,webm/high,medium,low,mini'},
+ {'format': '/${format}/${content}-${quality}', 'streams': 'av-orig/dash,hls/high,medium,low,mini'}]
+
cm = self.__generate_object(tmpl_env, 'sfive-proxy-cm.yml', worker)
cm['data']['proxy.json'] = json.dumps(proxy_conf)
v1.create_namespaced_config_map(self._namespace, cm)