zabbix-docker/web-nginx-mysql/alpine/conf/etc/nginx/nginx.conf

72 lines
1.9 KiB
Nginx Configuration File
Raw Normal View History

2020-04-25 21:01:11 +02:00
#user nginx;
2016-08-03 10:09:49 +02:00
worker_processes 5;
worker_rlimit_nofile 256000;
2020-04-27 23:59:09 +02:00
error_log /dev/fd/2 error;
2016-08-03 10:09:49 +02:00
2020-04-25 21:01:11 +02:00
pid /tmp/nginx.pid;
2016-08-03 10:09:49 +02:00
events {
worker_connections 5120;
use epoll;
}
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 /dev/fd/1 main;
2020-04-27 23:59:09 +02:00
error_log /dev/fd/2 error;
2020-04-27 23:31:42 +02:00
2020-04-27 23:59:09 +02:00
client_body_temp_path /tmp/client_body 1 2;
proxy_temp_path /tmp/proxy 1 2;
fastcgi_temp_path /tmp/fastcgi 1 2;
uwsgi_temp_path /tmp/uwsgi 1 2;
scgi_temp_path /tmp/scgi 1 2;
2016-08-03 10:09:49 +02:00
client_body_timeout 5m;
send_timeout 5m;
connection_pool_size 4096;
client_header_buffer_size 4k;
large_client_header_buffers 4 4k;
request_pool_size 4k;
reset_timedout_connection on;
gzip on;
gzip_min_length 100;
gzip_buffers 4 8k;
gzip_comp_level 5;
gzip_types text/plain;
gzip_types application/x-javascript;
gzip_types text/css;
output_buffers 128 512k;
postpone_output 1460;
aio on;
directio 512;
sendfile on;
client_max_body_size 8m;
client_body_buffer_size 256k;
2016-08-03 10:09:49 +02:00
fastcgi_intercept_errors on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 75 20;
ignore_invalid_headers on;
index index.php;
server_tokens off;
include /etc/nginx/conf.d/*.conf;
}