wip avec résolution de conflits
This commit is contained in:
parent
63b2d2b256
commit
ef19ba2b72
208 changed files with 178625 additions and 192002 deletions
|
|
@ -1,5 +1,5 @@
|
|||
###
|
||||
## This file comes with the "Angie modules" on https://deb.paranoid.nl/angie-modules
|
||||
## This file comes with the "NGINX Mainline and modules" on https://deb.paranoid.nl/nginx-modules
|
||||
## It contains various optimizations, examples and tweaks.
|
||||
####
|
||||
|
||||
|
|
@ -11,10 +11,8 @@ worker_rlimit_nofile 10000;
|
|||
pid /run/angie.pid;
|
||||
include /etc/angie/modules-enabled/*.conf;
|
||||
|
||||
pcre_jit on;
|
||||
|
||||
events {
|
||||
worker_connections 8192; # this can go as high as ulimit -n
|
||||
worker_connections 65535;
|
||||
multi_accept on;
|
||||
use epoll;
|
||||
}
|
||||
|
|
@ -31,23 +29,20 @@ http {
|
|||
directio 256k;
|
||||
sendfile_max_chunk 256k;
|
||||
|
||||
tcp_nopush on;
|
||||
tcp_nopush off;
|
||||
tcp_nodelay on;
|
||||
types_hash_max_size 2048;
|
||||
server_names_hash_bucket_size 128;
|
||||
variables_hash_max_size 1024;
|
||||
# server_name_in_redirect off;
|
||||
|
||||
include /etc/angie/mime.types;
|
||||
server_name_in_redirect off; # if off, angie will use the requested Host header
|
||||
source_charset utf-8; # same value as "charset"
|
||||
|
||||
default_type application/octet-stream;
|
||||
|
||||
###
|
||||
## Enable security_headers only if you installed/enabled the module
|
||||
###
|
||||
# security_headers on;
|
||||
|
||||
|
||||
###
|
||||
## Enable other security headers.
|
||||
###
|
||||
# hide_server_tokens on;
|
||||
# fastcgi_hide_header X-Powered-By;
|
||||
# server_tokens off;
|
||||
|
|
@ -55,13 +50,15 @@ http {
|
|||
##
|
||||
# Optimizing TLS over TCP to reduce latency (Cloudflare patch)
|
||||
##
|
||||
# ssl_dyn_rec_enable on;
|
||||
#ssl_dyn_rec_enable on;
|
||||
|
||||
##
|
||||
# Enable HTTP2 and HTTP3
|
||||
#
|
||||
http2 on;
|
||||
#http3 on;
|
||||
#
|
||||
##
|
||||
|
||||
##
|
||||
# SSL Settings
|
||||
|
|
@ -81,11 +78,11 @@ http {
|
|||
ssl_early_data on;
|
||||
|
||||
ssl_session_cache shared:SSL:10m;
|
||||
ssl_session_cache shared:le_nginx_SSL:10m; #letsencrypt only
|
||||
ssl_session_timeout 1440m;
|
||||
|
||||
# OCSP Stapling
|
||||
# fetch OCSP records from URL in ssl_certificate and cache them
|
||||
# Please enter your own nameservers for security
|
||||
ssl_stapling on;
|
||||
ssl_stapling_verify on;
|
||||
resolver 1.1.1.1 8.8.8.8 valid=300;
|
||||
|
|
@ -103,73 +100,51 @@ http {
|
|||
##
|
||||
# Gzip Settings
|
||||
##
|
||||
|
||||
gzip on;
|
||||
gzip_vary on;
|
||||
gzip_proxied any;
|
||||
gzip_comp_level 6;
|
||||
gzip_buffers 16 8k;
|
||||
gzip_http_version 1.1;
|
||||
gzip_min_length 250;
|
||||
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
|
||||
|
||||
##
|
||||
# Brotli settings (Please load module first!)
|
||||
##
|
||||
#brotli on;
|
||||
#brotli_comp_level 4;
|
||||
#brotli_buffers 32 8k;
|
||||
#brotli_min_length 1000;
|
||||
#brotli_static on;
|
||||
#brotli_types image/svg+xml text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript image/x-icon;
|
||||
|
||||
##
|
||||
# ZSTD Settings (Please load module first!)
|
||||
##
|
||||
#zstd on;
|
||||
#zstd_min_length 256; # no less than 256 bytes
|
||||
#zstd_comp_level 3; # set the level to #
|
||||
#zstd_buffers 32 8k;
|
||||
#zstd_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/ xml+rss text/javascript image/x-icon;
|
||||
|
||||
|
||||
###
|
||||
## Miscellaneous
|
||||
###
|
||||
|
||||
# cache informations about FDs, frequently accessed files
|
||||
# can boost performance, but you need to test those values
|
||||
#open_file_cache max=200000 inactive=20s;
|
||||
#open_file_cache_valid 30s;
|
||||
#open_file_cache_min_uses 2;
|
||||
keepalive_disable none; # allow all browsers to use keepalive connections
|
||||
keepalive_requests 50; # number of requests per connection, does not affect SPDY
|
||||
max_ranges 1; # allow a single range header for resumed downloads and to stop large range header DoS attacks
|
||||
msie_padding off;
|
||||
#open_file_cache max=10000 inactive=2h;
|
||||
#open_file_cache_errors on;
|
||||
|
||||
server_names_hash_bucket_size 256;
|
||||
server_names_hash_max_size 2048;
|
||||
variables_hash_bucket_size 256;
|
||||
variables_hash_max_size 2048;
|
||||
map_hash_max_size 2048;
|
||||
map_hash_bucket_size 256;
|
||||
|
||||
#postpone_output 1440; # postpone sends to match our machine's MSS
|
||||
read_ahead 512K; # kernel read head set to the output_buffers
|
||||
output_buffers 4 512k;
|
||||
#open_file_cache_min_uses 1;
|
||||
#open_file_cache_valid 1h;
|
||||
output_buffers 2 512k;
|
||||
#postpone_output 1440; # postpone sends to match our machine's MSS
|
||||
read_ahead 512K; # kernel read head set to the output_buffers
|
||||
server_name_in_redirect off; # if off, angie will use the requested Host header
|
||||
source_charset utf-8; # same value as "charset"
|
||||
|
||||
# Buffer size for POST submissions
|
||||
client_body_buffer_size 80K;
|
||||
client_body_buffer_size 10K;
|
||||
client_max_body_size 16m;
|
||||
|
||||
# Buffer size for Headers
|
||||
client_header_buffer_size 1k;
|
||||
|
||||
# Allow the server to close the connection after a client stops
|
||||
# responding.
|
||||
# Frees up socket-associated memory.
|
||||
#
|
||||
reset_timedout_connection on;
|
||||
|
||||
# Timeouts, do not keep connections open longer then necessary to reduce
|
||||
# resource usage and deny Slowloris type attacks.
|
||||
client_body_timeout 12; # maximum time between packets the client can pause when sending angie any data
|
||||
client_header_timeout 12;# maximum time the client has to send the entire header to ngin
|
||||
keepalive_timeout 15; # timeout which a single keep-alive client connection will stay open
|
||||
keepalive_disable none; # allow all browsers to use keepalive connections
|
||||
keepalive_requests 5000; # number of requests per connection, does not affect SPDY
|
||||
reset_timedout_connection on; # Allow the server to close the connection after a client stops responding.
|
||||
send_timeout 12;
|
||||
client_body_timeout 10s; # maximum time between packets the client can pause when sending angie any data
|
||||
client_header_timeout 10s; # maximum time the client has to send the entire header to angie
|
||||
keepalive_timeout 120s; # timeout which a single keep-alive client connection will stay open
|
||||
|
||||
##
|
||||
# Virtual Host Configs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue