Browse Source

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)
Patrick Schult 2 years ago
parent
commit
372b1c7bbc
2 changed files with 5 additions and 3 deletions
  1. 2 1
      data/conf/nginx/site.conf
  2. 3 2
      data/conf/nginx/templates/listen_ssl.template

+ 2 - 1
data/conf/nginx/site.conf

@@ -1,5 +1,6 @@
 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 {
      default $scheme;

+ 3 - 2
data/conf/nginx/templates/listen_ssl.template

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