Merge pull request #5383 from Dexus-Forks/Dexus-patch-1

Update config for nginx >=1.25.1 (http2, server_names_hash_max_size, server_names_hash_bucket_size)
This commit is contained in:
Patrick Schult
2023-08-29 12:05:44 +02:00
committed by GitHub
2 changed files with 5 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
proxy_cache_path /tmp levels=1:2 keys_zone=sogo:10m inactive=24h max_size=1g; proxy_cache_path /tmp levels=1:2 keys_zone=sogo:10m inactive=24h max_size=1g;
server_names_hash_bucket_size 64; server_names_hash_max_size 512;
server_names_hash_bucket_size 128;
map $http_x_forwarded_proto $client_req_scheme { map $http_x_forwarded_proto $client_req_scheme {
default $scheme; default $scheme;

View File

@@ -1,2 +1,3 @@
listen ${HTTPS_PORT} ssl http2; listen ${HTTPS_PORT} ssl;
listen [::]:${HTTPS_PORT} ssl http2; listen [::]:${HTTPS_PORT} ssl;
http2 on;