Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
envsetup
Manage
Activity
Members
Plan
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mediaserver
envsetup
Commits
2d28d7e2
Commit
2d28d7e2
authored
6 years ago
by
Stéphane Diemer
Browse files
Options
Downloads
Patches
Plain Diff
Added streaming block in CM vhost (refs
#25331
).
parent
8c46f29b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
2.Common_services/5.Nginx/vhost_skyreach.conf
+16
-0
16 additions, 0 deletions
2.Common_services/5.Nginx/vhost_skyreach.conf
with
16 additions
and
0 deletions
2.Common_services/5.Nginx/vhost_skyreach.conf
+
16
−
0
View file @
2d28d7e2
...
@@ -45,6 +45,22 @@ server {
...
@@ -45,6 +45,22 @@ server {
proxy_read_timeout
12
h
;
proxy_read_timeout
12
h
;
}
}
location
/
streaming
/ {
# check requested path, only m3u8 and ts are allowed
# ?: means that the group should not be stored as variable
location
~ ^/
streaming
/([\
d
\.\:]+)/((?:.+)\.(?:
m3u8
|
ts
)(?:\?.+)*)$ {
proxy_pass
https
://$
1
/$
2
;
proxy_cache
livecache
;
# do not consider secure urls as new files
proxy_cache_key
$
scheme
$
proxy_host
$
uri
;
# only one request at a time will be allowed to populate a new cache element
proxy_cache_lock
on
;
# show if playlist or fragment has been cached from wowza
add_header
X
-
Cache
$
upstream_cache_status
;
# wowza is defining expiration headers (m3u8 is 1s, ts is 3600)
}
}
location
/ {
location
/ {
uwsgi_pass
unix
:///
home
/
skyreach
/.
skyreach
/
uwsgi
.
sock
;
uwsgi_pass
unix
:///
home
/
skyreach
/.
skyreach
/
uwsgi
.
sock
;
include
/
etc
/
nginx
/
uwsgi_params
;
include
/
etc
/
nginx
/
uwsgi_params
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment