Skip to content

Commit aae0ce8

Browse files
committed
global config HLS_fragment value for oryx and nginx pod.
1 parent 5e536b6 commit aae0ce8

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

oryx-nginx-hls/charts/nginx-cache/templates/deployment.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ spec:
6464
- name: {{ $key }}
6565
value: {{ $value | quote }}
6666
{{- end }}
67+
- name: SRS_M3U8_EXPIRE
68+
value: {{ .Values.global.hlsFragment }}
6769
volumes:
6870
{{- with .Values.volumes }}
6971
{{- toYaml . | nindent 8 }}

oryx-nginx-hls/charts/nginx-cache/values.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ fullnameOverride: ""
1717
# The configuration for nginx cach.
1818
# must have SRS_M3U8_EXPIRE, SRS_TS_EXPIRE
1919
conf:
20-
SRS_M3U8_EXPIRE: 10
2120
SRS_TS_EXPIRE: 3600
2221

2322
serviceAccount:

oryx-nginx-hls/templates/deployment.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ spec:
7373
- name: {{ $key }}
7474
value: {{ $value | quote }}
7575
{{- end }}
76+
- name: SRS_VHOST_HLS_HLS_FRAGMENT
77+
value: {{ .Values.global.hlsFragment }}
7678
# Overwrite the config by env.
7779
{{- range .Values.env }}
7880
- name: {{ .name }}

oryx-nginx-hls/values.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ replicaCount: 1
2121
conf:
2222
SRS_LOG_TANK: "console"
2323
# below four confs used to force HLS high performance and HLS Low Latency
24-
SRS_VHOST_HLS_HLS_FRAGMENT: 2
2524
SRS_VHOST_HLS_HLS_WINDOW: 16
2625
SRS_VHOST_HLS_HLS_CTX: "off"
2726
SRS_VHOST_HLS_HLS_TS_CTX: "off"
@@ -129,4 +128,5 @@ tolerations: []
129128
affinity: {}
130129

131130
global:
132-
oryxHostName: oryx-host-name
131+
oryxHostName: oryx-host-name
132+
hlsFragment: 2

0 commit comments

Comments
 (0)