Added PHP 7.2 support + minor bugfixes and performance tweaks

Note when applying this update you will have to update existing nginx vhosts to match new listening addresses (IPv6). Preferably you should update them to unix socket though and apply the changes to the tor hidden service config as well
This commit is contained in:
Daniel Winzen
2018-02-10 22:10:07 +01:00
parent c65055a9bb
commit fa24bb61ec
95 changed files with 3075 additions and 59 deletions

View File

@ -6,7 +6,7 @@ pcre_jit on;
worker_rlimit_nofile 30000;
events {
worker_connections 768;
worker_connections 20000;
multi_accept on;
}
@ -22,9 +22,9 @@ http {
keepalive_timeout 65;
types_hash_max_size 2048;
server_tokens off;
client_max_body_size 1G;
client_max_body_size 10G;
proxy_http_version 1.1;
#proxy_buffering off;
proxy_buffering off;
client_body_timeout 10s;
client_header_timeout 10s;
@ -33,7 +33,7 @@ http {
server_names_hash_max_size 1024;
server_name_in_redirect off;
port_in_redirect off;
charset UTF-8;
charset UTF-8;
index index.html index.htm index.php index.hosting.html;
include /etc/nginx/mime.types;
@ -49,13 +49,27 @@ http {
}
expires $expires;
map $http_x_forwarded_proto $php_scheme {
default $scheme;
http "http";
https "https";
}
map $http_x_forwarded_proto $php_https {
default "";
https "on";
}
map $http_x_forwarded_proto $php_port {
default 80;
https 443;
}
##
# Logging Settings
##
log_format custom '0.0.0.0 - $remote_user [$time_local] "$request" $status $bytes_sent "$http_referer" "$http_user_agent"';
log_format custom '$host: 0.0.0.0 - $remote_user [$time_local] "$request" $status $bytes_sent "$http_referer" "$http_user_agent"';
access_log /var/log/nginx/access.log custom;
error_log /var/log/nginx/error.log notice;
log_not_found off;
log_not_found off;
##
# Gzip Settings
@ -74,5 +88,6 @@ http {
##
# Virtual Host Configs
##
include /etc/nginx/sites-enabled/*;
}