<% if @uses_tiler -%>
upstream <%= @name %>_tiler_backend {
server unix:/srv/imagery/sockets/titiler.sock max_fails=0;
+ server unix:/srv/./imagery/sockets/titiler.sock max_fails=0;
}
<% else -%>
upstream <%= @name %>_fastcgi {
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 {
location /api/v1/titiler {
rewrite ^/api/v1/titiler(.*)$ $1 break;
- proxy_pass http://titiler_api_backend
+ 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;