From 99d99be849d4e7f0c826bb25e0bd6d6339fdc298 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Tue, 18 Feb 2025 18:04:16 +0100 Subject: [PATCH] imagery: update nginx to modern http2 syntax --- cookbooks/imagery/templates/default/nginx_imagery.conf.erb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cookbooks/imagery/templates/default/nginx_imagery.conf.erb b/cookbooks/imagery/templates/default/nginx_imagery.conf.erb index 03a439343..a232d7830 100644 --- a/cookbooks/imagery/templates/default/nginx_imagery.conf.erb +++ b/cookbooks/imagery/templates/default/nginx_imagery.conf.erb @@ -23,8 +23,11 @@ upstream <%= @name %>_fastcgi { <% end -%> server { - listen 443 ssl http2; - listen [::]:443 ssl http2; + listen 443 ssl; + listen [::]:443 ssl; + + http2 on; + 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; -- 2.39.5