Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nginx-streaming-setup
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sebastian Rieger
nginx-streaming-setup
Commits
b02476c0
Commit
b02476c0
authored
5 years ago
by
sfriedmann
Browse files
Options
Downloads
Patches
Plain Diff
added nginx.conf
nginx+ nginx.conf for rtmp streaming
parent
7491b23e
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
etc/nginx/nginx.conf
+96
-0
96 additions, 0 deletions
etc/nginx/nginx.conf
with
96 additions
and
0 deletions
etc/nginx/nginx.conf
0 → 100644
+
96
−
0
View file @
b02476c0
user
nginx
;
worker_processes
auto
;
load_module
modules/ngx
_rtmp_module.so
;
error_log
/var/log/nginx/error.log
notice
;
pid
/var/run/nginx.pid
;
events
{
worker_connections
1024
;
}
http
{
include
/etc/nginx/mime.types
;
default_type
application/octet-stream
;
log_format
main
'
$remote_addr
-
$remote_user
[
$time_local
]
"
$request
"
'
'
$status
$body_bytes_sent
"
$http_referer
"
'
'"
$http_user_agent
"
"
$http_x_forwarded_for
"'
;
access_log
/var/log/nginx/access.log
main
;
sendfile
on
;
#tcp_nopush on;
keepalive_timeout
65
;
#gzip on;
include
/etc/nginx/conf.d/*.conf
;
}
# TCP/UDP proxy and load balancing block
#
#stream {
# Example configuration for TCP load balancing
#upstream stream_backend {
# zone tcp_servers 64k;
# server backend1.example.com:12345;
# server backend2.example.com:12345;
#}
#server {
# listen 12345;
# status_zone tcp_server;
# proxy_pass stream_backend;
#}
#}
rtmp
{
server
{
listen
1935
;
chunk_size
4000
;
application
app
{
live
on
;
#exec ffmpeg -i rtmp://localhost/app/$name
# -c:a libmp3lame -b:a 32k -c:v libx264 -b:v 128K
# -f flv rtmp://localhost/hls/$name_low
# -c:a libmp3lame -b:a 64k -c:v libx264 -b:v 256k
# -f flv rtmp://localhost/hls/$name_mid
# -c:a libmp3lame -b:a 128k -c:v libx264 -b:v 512K
# -f flv rtmp://localhost/hls/$name_hi
# -c:a libmp3lame -b:a 128k -c:v libx264 -b:v 512K
# -f flv rtmp://localhost/dash/$name_dash;
#exec ffmpeg -i rtmp://localhost:1935/$app/$name
# -c:a libmp3lame -b:a 128k -c:v libx264 -b:v 512K
# -f flv rtmp://localhost/dash/$name_dash;
}
application
hls
{
live
on
;
hls
on
;
hls_path
/tmp/hls
;
hls_nested
on
;
hls_variant
_low
BANDWIDTH=160000
;
hls_variant
_low
BANDWIDTH=320000
;
hls_variant
_low
BANDWIDTH=640000
;
}
application
dash
{
live
on
;
dash
on
;
dash_path
/tmp/dash
;
dash_nested
on
;
}
}
}
\ No newline at end of file
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