Skip to content

Instantly share code, notes, and snippets.

View dnntung's full-sized avatar
🎧
Listening music

doodleragon dnntung

🎧
Listening music
  • MB
  • A fantasy world in Vietnam
  • 15:27 (UTC +07:00)
View GitHub Profile
@dnntung
dnntung / nginx.conf
Created January 22, 2023 14:31
nginx rtmp config with ffmpeg/external encoders
## ====================================================================================================== ##
## Visit this page for a list of all variables: https://github.com/arut/nginx-rtmp-module/wiki/Directives ##
## Visit this site for many more configuration examples: https://github.com/arut/nginx-rtmp-module ##
## This example file was put together by Andre "ustoopia" for usage on https://youtube.com/ustoopia ##
## ====================================================================================================== ##
user www-data; # Only used on linux. Nginx will run under this username.
worker_processes 1; # Set this to how many processors/cores CPU has. Relates to "worker_connections"
pid /run/nginx.pid; # Sets the location of the process id file (used on linux only).
include /etc/nginx/modules-enabled/*.conf; # Include all the optional configuration files stored here.
events {