File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
elasticsearch/stac_fastapi/elasticsearch
opensearch/stac_fastapi/opensearch Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ services:
2020 - ES_PORT=9200
2121 - ES_USE_SSL=false
2222 - ES_VERIFY_CERTS=false
23+ - ES_TIMEOUT=30
2324 - BACKEND=elasticsearch
2425 - DATABASE_REFRESH=true
2526 - ENABLE_COLLECTIONS_SEARCH_ROUTE=true
@@ -60,6 +61,7 @@ services:
6061 - ES_PORT=9202
6162 - ES_USE_SSL=false
6263 - ES_VERIFY_CERTS=false
64+ - ES_TIMEOUT=30
6365 - BACKEND=opensearch
6466 - STAC_FASTAPI_RATE_LIMIT=200/minute
6567 - ENABLE_COLLECTIONS_SEARCH_ROUTE=true
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ def _es_config() -> Dict[str, Any]:
5858
5959 # Include timeout setting if set
6060 if request_timeout := os .getenv ("ES_TIMEOUT" ):
61- config ["request_timeout" ] = request_timeout
61+ config ["request_timeout" ] = int ( request_timeout )
6262
6363 # Explicitly exclude SSL settings when not using SSL
6464 if not use_ssl :
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ def _es_config() -> Dict[str, Any]:
5656
5757 # Include timeout setting if set
5858 if timeout := os .getenv ("ES_TIMEOUT" ):
59- config ["timeout" ] = timeout
59+ config ["timeout" ] = int ( timeout )
6060
6161 # Explicitly exclude SSL settings when not using SSL
6262 if not use_ssl :
You can’t perform that action at this time.
0 commit comments