From 9bd2bd6165dfa561e683b852a02e677995685831 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Wed, 27 Mar 2024 19:34:25 +0000 Subject: [PATCH] imagery: increase http2 max concurrent streams --- cookbooks/imagery/templates/default/nginx_imagery.conf.erb | 2 ++ cookbooks/imagery/templates/default/nginx_titiler.conf.erb | 2 ++ 2 files changed, 4 insertions(+) diff --git a/cookbooks/imagery/templates/default/nginx_imagery.conf.erb b/cookbooks/imagery/templates/default/nginx_imagery.conf.erb index 497cc1f53..be2c6acf8 100644 --- a/cookbooks/imagery/templates/default/nginx_imagery.conf.erb +++ b/cookbooks/imagery/templates/default/nginx_imagery.conf.erb @@ -27,6 +27,8 @@ server { listen [::]:443 ssl http2; server_name <%= @name %> a.<%= @name %> b.<%= @name %> c.<%= @name %><% @aliases.each do |alias_name| %> <%= alias_name %> a.<%= alias_name %> b.<%= alias_name %> c.<%= alias_name %><%- end -%>; + http2_max_concurrent_streams 512; + ssl_certificate /etc/ssl/certs/<%= @name %>.pem; ssl_certificate_key /etc/ssl/private/<%= @name %>.key; <% if node[:ssl][:strict_transport_security] -%> diff --git a/cookbooks/imagery/templates/default/nginx_titiler.conf.erb b/cookbooks/imagery/templates/default/nginx_titiler.conf.erb index 6e03a25b9..f78d2858c 100644 --- a/cookbooks/imagery/templates/default/nginx_titiler.conf.erb +++ b/cookbooks/imagery/templates/default/nginx_titiler.conf.erb @@ -20,6 +20,8 @@ server { listen [::]:443 ssl http2; server_name <%= @name %> <% @aliases.each do |alias_name| %> <%= alias_name %><%- end -%>; + http2_max_concurrent_streams 512; + ssl_certificate /etc/ssl/certs/<%= @name %>.pem; ssl_certificate_key /etc/ssl/private/<%= @name %>.key; <% if node[:ssl][:strict_transport_security] -%> -- 2.39.5