X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/8e44443bf1f645617bd39df22f68801f10beea3a..8143fc583e3911338bc455f858f4df9a0567c171:/cookbooks/imagery/templates/default/nginx_titiler.conf.erb diff --git a/cookbooks/imagery/templates/default/nginx_titiler.conf.erb b/cookbooks/imagery/templates/default/nginx_titiler.conf.erb index 77e13b20c..155620949 100644 --- a/cookbooks/imagery/templates/default/nginx_titiler.conf.erb +++ b/cookbooks/imagery/templates/default/nginx_titiler.conf.erb @@ -15,6 +15,11 @@ server { } } +upstream titiler_api_backend { + server unix:/srv/imagery/sockets/titiler.sock max_fails=0; + server unix:/srv/./imagery/sockets/titiler.sock max_fails=0; +} + server { listen 443 ssl http2; listen [::]:443 ssl http2; @@ -46,7 +51,7 @@ server { location /api/v1/titiler { rewrite ^/api/v1/titiler(.*)$ $1 break; - proxy_pass http://localhost:8080; + proxy_pass http://titiler_api_backend; proxy_set_header Host $host; proxy_set_header Referer $http_referer; proxy_set_header X-Forwarded-For $remote_addr;