]> git.openstreetmap.org Git - chef.git/commitdiff
imagery: update nginx to modern http2 syntax
authorGrant Slater <github@firefishy.com>
Tue, 18 Feb 2025 17:04:16 +0000 (18:04 +0100)
committerGrant Slater <github@firefishy.com>
Tue, 18 Feb 2025 17:04:16 +0000 (18:04 +0100)
cookbooks/imagery/templates/default/nginx_imagery.conf.erb

index 03a439343b57bb7b3dac7bb1855687901f5b5a9d..a232d783011c88dba3dfb77ebaa01f427d70f79b 100644 (file)
@@ -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;