You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23Lines changed: 23 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -284,6 +284,29 @@ You can customize additional settings in your `.env` file:
284
284
> [!NOTE]
285
285
> The variables `ES_HOST`, `ES_PORT`, `ES_USE_SSL`, `ES_VERIFY_CERTS` and `ES_TIMEOUT` apply to both Elasticsearch and OpenSearch backends, so there is no need to rename the key names to `OS_` even if you're using OpenSearch.
286
286
287
+
**Redis for Navigation:**
288
+
These Redis configuration variables enable proper navigation functionality in STAC FastAPI. The Redis cache stores navigation state for paginated results, allowing the system to maintain previous page links using tokens. The configuration supports either Redis Sentinel or Redis:
|`REDIS_SENTINEL_HOSTS`| Comma-separated list of Redis Sentinel hostnames/IP addresses. |`""`| Conditional (required if using Sentinel) |
294
+
|`REDIS_SENTINEL_PORTS`| Comma-separated list of Redis Sentinel ports (must match order). |`"26379"`| Conditional (required if using Sentinel) |
295
+
|`REDIS_SENTINEL_MASTER_NAME`| Name of the Redis master node in Sentinel configuration. |`"master"`| Conditional (required if using Sentinel) |
296
+
|**Redis**||||
297
+
|`REDIS_HOST`| Redis server hostname or IP address for Redis configuration. |`""`| Conditional (required for standalone Redis) |
298
+
|`REDIS_PORT`| Redis server port for Redis configuration. |`6379`| Conditional (required for standalone Redis) |
299
+
|**Both**||||
300
+
|`REDIS_DB`| Redis database number to use for caching. |`0` (Sentinel) / `0` (Standalone) | Optional |
301
+
|`REDIS_MAX_CONNECTIONS`| Maximum number of connections in the Redis connection pool. |`10`| Optional |
302
+
|`REDIS_RETRY_TIMEOUT`| Enable retry on timeout for Redis operations. |`true`| Optional |
303
+
|`REDIS_DECODE_RESPONSES`| Automatically decode Redis responses to strings. |`true`| Optional |
304
+
|`REDIS_CLIENT_NAME`| Client name identifier for Redis connections. |`"stac-fastapi-app"`| Optional |
305
+
|`REDIS_HEALTH_CHECK_INTERVAL`| Interval in seconds for Redis health checks. |`30`| Optional |
306
+
307
+
> [!NOTE]
308
+
> Use either the Sentinel configuration (`REDIS_SENTINEL_HOSTS`, `REDIS_SENTINEL_PORTS`, `REDIS_SENTINEL_MASTER_NAME`) OR the Redis configuration (`REDIS_HOST`, `REDIS_PORT`), but not both.
0 commit comments