mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Merge pull request #2824 from holta/nginx_byte-range_fix
Force NGINX to allow HTTP/1.1 byte-range, so proxied Kolibri videos play on Apple devices
This commit is contained in:
commit
f078b2738d
2 changed files with 40 additions and 33 deletions
|
@ -1,6 +1,6 @@
|
|||
# IIAB notes:
|
||||
# /etc/nginx/sites-enabled is for server declarations
|
||||
# /etc/nginx/conf.d is for location declarations within the main server block
|
||||
# /etc/nginx/conf.d/* are included by /etc/nginx/server.conf
|
||||
# /etc/nginx/sites-enabled/*.conf includes other sites
|
||||
|
||||
user www-data;
|
||||
worker_processes auto;
|
||||
|
@ -79,6 +79,13 @@ http {
|
|||
'' close;
|
||||
}
|
||||
|
||||
# 2021-06-22: Enables HTTP/1.1 byte-range, so Kolibri videos play on Apple
|
||||
# and LG devices: https://github.com/learningequality/kolibri/issues/8164
|
||||
# http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_force_ranges
|
||||
# This should help all roles! RECAP: when unproxied, Kolibri videos worked
|
||||
# (http://box:8009/kolibri/) but not when proxied (http://box/kolibri/).
|
||||
proxy_force_ranges on;
|
||||
|
||||
##
|
||||
# Virtual Host Configs
|
||||
##
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue