mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-23 01:39:27 +02:00
54 lines
1.3 KiB
Nginx Configuration File
54 lines
1.3 KiB
Nginx Configuration File
worker_processes auto;
|
|
worker_rlimit_nofile 100000;
|
|
|
|
events {
|
|
use epoll;
|
|
worker_connections 10240;
|
|
multi_accept on;
|
|
}
|
|
|
|
http {
|
|
include mime.types;
|
|
default_type application/octet-stream;
|
|
server_names_hash_bucket_size 128;
|
|
client_header_buffer_size 32k;
|
|
large_client_header_buffers 4 32k;
|
|
client_max_body_size 1024m;
|
|
client_body_buffer_size 10m;
|
|
sendfile on;
|
|
tcp_nopush on;
|
|
keepalive_timeout 120;
|
|
server_tokens off;
|
|
tcp_nodelay on;
|
|
vhost_traffic_status_zone;
|
|
|
|
#Gzip Compression
|
|
gzip on;
|
|
gzip_buffers 16 8k;
|
|
gzip_comp_level 6;
|
|
gzip_http_version 1.1;
|
|
gzip_min_length 256;
|
|
gzip_proxied any;
|
|
gzip_vary on;
|
|
gzip_types
|
|
text/xml application/xml application/atom+xml application/rss+xml application/xhtml+xml image/svg+xml
|
|
text/javascript application/javascript application/x-javascript
|
|
text/x-json application/json application/x-web-app-manifest+json
|
|
text/css text/plain text/x-component
|
|
font/opentype application/x-font-ttf application/vnd.ms-fontobject
|
|
image/x-icon;
|
|
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
|
|
|
|
server {
|
|
server_name _;
|
|
listen 80;
|
|
location /status {
|
|
vhost_traffic_status_display;
|
|
vhost_traffic_status_display_format html;
|
|
}
|
|
}
|
|
|
|
include vhost/*.conf;
|
|
}
|
|
|