mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-04-20 04:19:18 +00:00
78 lines
1.6 KiB
Nginx Configuration File
78 lines
1.6 KiB
Nginx Configuration File
#user web;
|
|
worker_processes auto;
|
|
pid /nginx/run/nginx.pid;
|
|
daemon off;
|
|
|
|
events {
|
|
worker_connections 2048;
|
|
use epoll;
|
|
}
|
|
|
|
http {
|
|
include /nginx/conf/mime.types;
|
|
default_type application/octet-stream;
|
|
|
|
access_log /nginx/log/nginx_access.log combined;
|
|
error_log /nginx/log/nginx_error.log error;
|
|
|
|
aio threads;
|
|
aio_write on;
|
|
|
|
more_set_headers 'secret';
|
|
|
|
sendfile on;
|
|
keepalive_timeout 15;
|
|
keepalive_disable msie6;
|
|
keepalive_requests 100;
|
|
tcp_nopush on;
|
|
tcp_nodelay off;
|
|
server_tokens off;
|
|
proxy_max_temp_file_size 20480m;
|
|
|
|
gzip on;
|
|
gzip_comp_level 5;
|
|
gzip_min_length 512;
|
|
gzip_buffers 4 8k;
|
|
gzip_proxied any;
|
|
gzip_vary on;
|
|
gzip_disable "msie6";
|
|
gzip_types
|
|
text/css
|
|
text/javascript
|
|
text/xml
|
|
text/plain
|
|
text/x-component
|
|
application/javascript
|
|
application/x-javascript
|
|
application/json
|
|
application/xml
|
|
application/rss+xml
|
|
application/vnd.ms-fontobject
|
|
font/truetype
|
|
font/opentype
|
|
image/svg+xml;
|
|
|
|
brotli on;
|
|
brotli_static on;
|
|
brotli_buffers 16 8k;
|
|
brotli_comp_level 6;
|
|
brotli_types
|
|
text/css
|
|
text/javascript
|
|
text/xml
|
|
text/plain
|
|
text/x-component
|
|
application/javascript
|
|
application/x-javascript
|
|
application/json
|
|
application/xml
|
|
application/rss+xml
|
|
application/vnd.ms-fontobject
|
|
font/truetype
|
|
font/opentype
|
|
image/svg+xml;
|
|
|
|
include /nginx/sites-enabled/*.conf;
|
|
include /nginx/custom_sites/*.conf;
|
|
}
|