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
1706bf5a
Commit
1706bf5a
authored
8 years ago
by
Stéphane Diemer
Browse files
Options
Downloads
Patches
Plain Diff
Updated streaming vhost.
parent
889212e5
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
6.Nginx/vhost_streaming.conf
+27
-9
27 additions, 9 deletions
6.Nginx/vhost_streaming.conf
with
27 additions
and
9 deletions
6.Nginx/vhost_streaming.conf
+
27
−
9
View file @
1706bf5a
...
...
@@ -19,15 +19,33 @@ server {
}
location
/ {
location
~ \.
m3u8
$ {
rewrite
^/(.*)$ /$
1
?
break
;
proxy_pass
http
://
localhost
:
1935
;
add_header
Access
-
Control
-
Allow
-
Origin
"*"
;
add_header
X
-
Cache
$
upstream_cache_status
;
expires
-
1
;
proxy_cache
livecache
;
proxy_cache_key
$
scheme
$
proxy_host
$
uri
;
proxy_cache_lock
on
;
proxy_cache_min_uses
1
;
proxy_cache_use_stale
updating
;
proxy_cache_valid
200
1
s
;
}
location
~ \.
ts
$ {
rewrite
^/(.*)$ /$
1
?
break
;
proxy_pass
http
://
localhost
:
1935
;
add_header
Access
-
Control
-
Allow
-
Origin
"*"
;
add_header
X
-
Cache
$
upstream_cache_status
;
expires
2
s
;
proxy_cache
livecache
;
proxy_cache_key
$
scheme
$
proxy_host
$
uri
;
proxy_cache_lock
on
;
proxy_cache_min_uses
1
;
proxy_cache_valid
200
10
s
;
}
# only urls to ts and m3u8 files are allowed, discard any requested path for other urls
rewrite
^/(.*)$ /?
break
;
proxy_pass
http
://
localhost
:
1935
/;
proxy_cache
cache
;
proxy_cache_lock
on
;
expires
2
s
;
proxy_cache_use_stale
updating
;
proxy_cache_min_uses
1
;
proxy_cache_valid
200
2
s
;
add_header
X
-
Proxy
-
Cache
$
upstream_cache_status
;
add_header
X
-
Cache
$
upstream_cache_status
;
add_header
Access
-
Control
-
Allow
-
Origin
"*"
;
}
}
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