Skip to content

Commit

Permalink
provide optional tuning parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
seonghobae committed Sep 2, 2019
1 parent 78965c3 commit 9cf88bf
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions debian/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ pid /var/run/nginx.pid;

events {
worker_connections 768;
# multi_accept on;
# use epoll;
}

# Separate stream location files
Expand All @@ -80,12 +82,12 @@ include /etc/nginx/sites-enabled/*.stream;
http {

# Basic Settings
sendfile on;
tcp_nopush on;
tcp_nodelay on;
types_hash_max_size 2048;
server_tokens off;
ignore_invalid_headers on;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
types_hash_max_size 2048;
server_tokens off;
ignore_invalid_headers on;

# Decrease default timeouts to drop slow clients
keepalive_timeout 40s;
Expand All @@ -101,6 +103,9 @@ http {
default_type application/octet-stream;
include /etc/nginx/mime.types;

# aio threads
# aio threads=default;

# log
log_format main '$remote_addr - $remote_user [$time_local] "$request" $status $bytes_sent "$http_referer" "$http_user_agent" "$gzip_ratio"';
access_log /var/log/nginx/access.log main;
Expand Down

0 comments on commit 9cf88bf

Please sign in to comment.