74 lines
1.8 KiB
Nginx Configuration File
74 lines
1.8 KiB
Nginx Configuration File
worker_processes auto;
|
|
worker_rlimit_nofile 65535;
|
|
|
|
# Include Modules
|
|
include /etc/nginx/modules-enabled/*.conf;
|
|
load_module /usr/lib/nginx/modules/ngx_http_brotli_filter_module.so; # for compressing responses on-the-fly
|
|
load_module /usr/lib/nginx/modules/ngx_http_brotli_static_module.so; # for serving pre-compressed files
|
|
#load_module /usr/lib/nginx/modules/ngx_http_headers_more_filter_module.so;
|
|
|
|
#Include external config
|
|
include /etc/nginx/conf.d/*.conf;
|
|
|
|
events {
|
|
worker_connections 65535;
|
|
multi_accept on;
|
|
}
|
|
|
|
http {
|
|
log_format limited '$remote_addr - $remote_user [$time_local] '
|
|
'"$request_method /bogus $server_protocol" $status $body_bytes_sent '
|
|
'"-" "Bogus/66.6"';
|
|
access_log off;
|
|
error_log /dev/null;
|
|
disable_symlinks off;
|
|
|
|
# Basic Settings
|
|
charset utf-8;
|
|
sendfile on;
|
|
tcp_nopush on;
|
|
tcp_nodelay on;
|
|
server_tokens off;
|
|
#more_clear_headers Server;
|
|
log_not_found off;
|
|
types_hash_max_size 1024;
|
|
types_hash_bucket_size 128;
|
|
server_names_hash_bucket_size 128;
|
|
|
|
# MIME
|
|
include mime.types;
|
|
default_type application/octet-stream;
|
|
|
|
# SSL
|
|
include configs/sslConfig.conf;
|
|
|
|
# reset timed out connections freeing ram
|
|
reset_timedout_connection on;
|
|
# maximum time between packets the client can pause when sending nginx any data
|
|
client_body_timeout 10s;
|
|
# maximum time the client has to send the entire header to nginx
|
|
client_header_timeout 10s;
|
|
# timeout which a single keep-alive client connection will stay open
|
|
keepalive_timeout 60s;
|
|
# maximum time between packets nginx is allowed to pause when sending the client data
|
|
send_timeout 10s;
|
|
|
|
# QUIC AND HTTP3 SHIT
|
|
http3 on;
|
|
quic_retry on;
|
|
quic_gso on;
|
|
|
|
# PERFORMANCE / ASYNC I/O
|
|
aio threads=default;
|
|
aio_write on;
|
|
directio 2m;
|
|
|
|
# Maps
|
|
include /etc/nginx/snippets/maps.conf;
|
|
include /etc/nginx/snippets/poop.conf;
|
|
|
|
# Virtual Host Configs
|
|
include /etc/nginx/sites-enabled/*.conf;
|
|
|
|
}
|