environment :BIND => "unix:/sockets/titiler.sock",
:WORKERS_PER_CORE => 1,
:GDAL_CACHEMAX => 200,
+ :GDAL_BAND_BLOCK_CACHE => "HASHSET",
:GDAL_DISABLE_READDIR_ON_OPEN => "EMPTY_DIR",
:GDAL_INGESTED_BYTES_AT_OPEN => 32768,
:GDAL_HTTP_MERGE_CONSECUTIVE_RANGES => "YES",
}
}
+upstream titiler_api_backend {
+ 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 unix:/srv/imagery/sockets/titiler.sock;
+ 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;