From 78b8ee8ababdae0ca588c45be33a607fcc94d141 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Mon, 1 Jul 2024 18:06:02 +0100 Subject: [PATCH] imagery: do not use keepalive for socket --- cookbooks/imagery/templates/default/nginx_imagery.conf.erb | 2 -- cookbooks/imagery/templates/default/nginx_titiler.conf.erb | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/cookbooks/imagery/templates/default/nginx_imagery.conf.erb b/cookbooks/imagery/templates/default/nginx_imagery.conf.erb index 81f829225..126c2d117 100644 --- a/cookbooks/imagery/templates/default/nginx_imagery.conf.erb +++ b/cookbooks/imagery/templates/default/nginx_imagery.conf.erb @@ -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 { diff --git a/cookbooks/imagery/templates/default/nginx_titiler.conf.erb b/cookbooks/imagery/templates/default/nginx_titiler.conf.erb index 77e13b20c..191ee495f 100644 --- a/cookbooks/imagery/templates/default/nginx_titiler.conf.erb +++ b/cookbooks/imagery/templates/default/nginx_titiler.conf.erb @@ -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; -- 2.39.5