1st commit - refined 2019 cfg + AI made README (I despise writing docs so it was either letting AI write README or having none, sorry)
This commit is contained in:
73
nginx/nginx.conf
Normal file
73
nginx/nginx.conf
Normal file
@@ -0,0 +1,73 @@
|
||||
# This is an NGINX configuration file written and used by me in order to configure NGINX globally.
|
||||
#
|
||||
# (c) Corrado Mulas <tlc@mulas.me>
|
||||
#
|
||||
# For the full copyright and license information, please view the LICENSE
|
||||
# file that was distributed with this source code.
|
||||
|
||||
user www-data;
|
||||
worker_processes auto;
|
||||
pid /run/nginx.pid;
|
||||
include /etc/nginx/modules-enabled/*.conf;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
multi_accept on;
|
||||
use epoll;
|
||||
}
|
||||
|
||||
http {
|
||||
|
||||
client_max_body_size 50G;
|
||||
disable_symlinks off;
|
||||
##
|
||||
# Basic Settings
|
||||
##
|
||||
|
||||
sendfile on;
|
||||
tcp_nopush on;
|
||||
tcp_nodelay on;
|
||||
keepalive_timeout 65;
|
||||
types_hash_max_size 2048;
|
||||
|
||||
proxy_connect_timeout 99999s;
|
||||
proxy_send_timeout 99999s;
|
||||
proxy_read_timeout 99999s;
|
||||
fastcgi_send_timeout 99999s;
|
||||
fastcgi_read_timeout 99999s;
|
||||
|
||||
server_names_hash_bucket_size 64;
|
||||
|
||||
set_real_ip_from 127.0.0.1;
|
||||
set_real_ip_from 192.168.1.0/24;
|
||||
real_ip_header X-Forwarded-For;
|
||||
real_ip_recursive on;
|
||||
|
||||
include /etc/nginx/custom.d/mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
||||
##
|
||||
# SSL Settings — protocols and ciphers live in conf.d/ssl.conf
|
||||
##
|
||||
|
||||
##
|
||||
# Logging Settings
|
||||
##
|
||||
|
||||
access_log /var/log/nginx/access.log;
|
||||
error_log /var/log/nginx/error.log;
|
||||
|
||||
##
|
||||
# Gzip Settings
|
||||
##
|
||||
|
||||
gzip on;
|
||||
gzip_disable "msie6";
|
||||
|
||||
include /etc/nginx/conf.d/*.conf;
|
||||
include /etc/nginx/sites-enabled/*;
|
||||
|
||||
server_tokens off; # removed pound sign
|
||||
more_set_headers 'Server: D-I/O-CANet WS';
|
||||
more_set_headers 'X-Powered-By: Mago Otelma';
|
||||
}
|
||||
Reference in New Issue
Block a user