Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pitube
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
TO
pitube
Commits
299c85b8
Verified
Commit
299c85b8
authored
4 years ago
by
Andrej Ramašeuski
Browse files
Options
Downloads
Patches
Plain Diff
Zmena url callbacku, primy pristup k hls
parent
774e6063
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
nginx.conf
+19
-15
19 additions, 15 deletions
nginx.conf
with
19 additions
and
15 deletions
nginx.conf
+
19
−
15
View file @
299c85b8
...
...
@@ -14,9 +14,10 @@ rtmp {
application
stream
{
live
on
;
on_publish
http://pitube:3000/callback
;
on_publish_done
http://pitube:3000/callback
;
on_update
http://pitube:3000/callback
;
on_publish
http://pitube:3000/callback/rtmp
;
on_publish
http://pitube:3000/callback/rtmp
;
on_publish_done
http://pitube:3000/callback/rtmp
;
on_update
http://pitube:3000/callback/rtmp
;
notify_update_timeout
15s
;
# -c:a libfdk_aac -b:a 128k -c:v libx264 -b:v 1000k -f flv -g 30 -r 30 -s 854x480 -preset superfast -profile:v baseline
...
...
@@ -63,12 +64,8 @@ http {
server
{
listen
$
{
HTTP_PORT
}
;
location
/
{
proxy_pass
http://pitube:3000/
;
add_header
Access-Control-Allow-Origin
*
;
}
location
/hls
{
auth_request
/callback/hls
;
alias
/tmp/hls
;
types
{
application/vnd.apple.mpegurl
m3u8
;
...
...
@@ -92,5 +89,12 @@ http {
default_type
text/xml
;
expires
24h
;
}
location
/
{
proxy_pass
http://pitube:3000/
;
add_header
Access-Control-Allow-Origin
*
;
proxy_set_header
X-Original-URI
$request_uri
;
}
}
}
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