]> git.openstreetmap.org Git - chef.git/commitdiff
imagery: do not use keepalive for socket
authorGrant Slater <github@firefishy.com>
Mon, 1 Jul 2024 17:06:02 +0000 (18:06 +0100)
committerGrant Slater <github@firefishy.com>
Mon, 1 Jul 2024 17:06:02 +0000 (18:06 +0100)
cookbooks/imagery/templates/default/nginx_imagery.conf.erb
cookbooks/imagery/templates/default/nginx_titiler.conf.erb

index 81f82922592cf66eb9bbbe0cfd690b19a4df0f2e..126c2d1173985ad2ffae1c8ed77891290285a9d3 100644 (file)
@@ -10,8 +10,6 @@ server {
 <% if @uses_tiler -%>
 upstream <%= @name %>_tiler_backend {
     server unix:/srv/imagery/sockets/titiler.sock max_fails=0;
-
-    keepalive 8;
 }
 <% else -%>
 upstream <%= @name %>_fastcgi {
index 77e13b20c8c26f45c110f62934e07119353fe5b1..191ee495ff533931225c8e093fd609aba1a10c68 100644 (file)
@@ -46,7 +46,7 @@ server {
 
     location /api/v1/titiler {
       rewrite ^/api/v1/titiler(.*)$ $1 break;
-      proxy_pass http://localhost:8080;
+      proxy_pass unix:/srv/imagery/sockets/titiler.sock;
       proxy_set_header Host $host;
       proxy_set_header Referer $http_referer;
       proxy_set_header X-Forwarded-For $remote_addr;