fix angie main config
This commit is contained in:
+47
-47
@@ -1,47 +1,47 @@
|
|||||||
# package: angie-module-rtmp
|
# package: angie-module-rtmp
|
||||||
load_module modules/ngx_rtmp_module.so;
|
load_module modules/ngx_rtmp_module.so;
|
||||||
|
|
||||||
user angie;
|
user angie;
|
||||||
worker_processes auto;
|
worker_processes auto;
|
||||||
worker_rlimit_nofile 65536;
|
worker_rlimit_nofile 65536;
|
||||||
|
|
||||||
error_log /var/log/angie/error.log notice;
|
error_log /dev/stdout notice;
|
||||||
pid /run/angie/angie.pid;
|
pid /run/angie/angie.pid;
|
||||||
|
|
||||||
events {
|
|
||||||
worker_connections 2048;
|
events {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
http {
|
||||||
http {
|
include /etc/angie/mime.types;
|
||||||
include /etc/angie/mime.types;
|
default_type application/octet-stream;
|
||||||
default_type application/octet-stream;
|
|
||||||
|
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
||||||
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
'$status $body_bytes_sent "$http_referer" '
|
||||||
'$status $body_bytes_sent "$http_referer" '
|
'"$http_user_agent" "$http_x_forwarded_for"';
|
||||||
'"$http_user_agent" "$http_x_forwarded_for"';
|
|
||||||
|
log_format extended '$remote_addr - $remote_user [$time_local] "$request" '
|
||||||
log_format extended '$remote_addr - $remote_user [$time_local] "$request" '
|
'$status $body_bytes_sent "$http_referer" rt="$request_time" '
|
||||||
'$status $body_bytes_sent "$http_referer" rt="$request_time" '
|
'"$http_user_agent" "$http_x_forwarded_for" '
|
||||||
'"$http_user_agent" "$http_x_forwarded_for" '
|
'h="$host" sn="$server_name" ru="$request_uri" u="$uri" '
|
||||||
'h="$host" sn="$server_name" ru="$request_uri" u="$uri" '
|
'ucs="$upstream_cache_status" ua="$upstream_addr" us="$upstream_status" '
|
||||||
'ucs="$upstream_cache_status" ua="$upstream_addr" us="$upstream_status" '
|
'uct="$upstream_connect_time" urt="$upstream_response_time"';
|
||||||
'uct="$upstream_connect_time" urt="$upstream_response_time"';
|
|
||||||
|
access_log /dev/stdout main;
|
||||||
access_log /var/log/angie/access.log main;
|
|
||||||
|
sendfile on;
|
||||||
sendfile on;
|
#tcp_nopush on;
|
||||||
#tcp_nopush on;
|
|
||||||
|
keepalive_timeout 65;
|
||||||
keepalive_timeout 65;
|
|
||||||
|
#gzip on;
|
||||||
#gzip on;
|
|
||||||
|
include /etc/angie/http.d/*.conf;
|
||||||
include /etc/angie/http.d/*.conf;
|
}
|
||||||
}
|
|
||||||
|
rtmp_auto_push on;
|
||||||
rtmp {
|
rtmp {
|
||||||
include /etc/angie/rtmp.d/*.conf;
|
include /etc/angie/rtmp.d/*.conf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user