mirror of
https://github.com/mediacms-io/mediacms.git
synced 2024-12-12 18:10:46 +01:00
950adcdd9d
* Webserver security * Create vHost dirs during install; link vHost to sites-enabled * Remove default vHosts during install * Only generate new DH params when also using real certificates * Removed duplicate ssl_ecdh_curve
39 lines
1.0 KiB
Nginx Configuration File
39 lines
1.0 KiB
Nginx Configuration File
user www-data;
|
|
worker_processes auto;
|
|
pid /run/nginx.pid;
|
|
|
|
events {
|
|
worker_connections 10240;
|
|
}
|
|
|
|
worker_rlimit_nofile 20000; #each connection needs a filehandle (or 2 if you are proxying)
|
|
http {
|
|
proxy_connect_timeout 75;
|
|
proxy_read_timeout 12000;
|
|
client_max_body_size 5800M;
|
|
sendfile on;
|
|
tcp_nopush on;
|
|
tcp_nodelay on;
|
|
keepalive_timeout 10;
|
|
types_hash_max_size 2048;
|
|
|
|
include /etc/nginx/mime.types;
|
|
default_type application/octet-stream;
|
|
|
|
access_log /var/log/nginx/access.log;
|
|
error_log /var/log/nginx/error.log;
|
|
|
|
gzip on;
|
|
gzip_disable "msie6";
|
|
|
|
log_format compression '$remote_addr - $remote_user [$time_local] '
|
|
'"$request" $status $body_bytes_sent '
|
|
'"$http_referer" "$http_user_agent" "$gzip_ratio"';
|
|
|
|
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
|
|
|
|
include /etc/nginx/conf.d/*.conf;
|
|
include /etc/nginx/sites-enabled/*;
|
|
}
|
|
|