}
}
+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;
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;