feat(627): support setting Redis cache key prefix via environment var… (#632)

This commit is contained in:
Daniel Graf
2026-01-05 08:26:16 +01:00
committed by GitHub
parent 819df59415
commit 7b48f621b5
3 changed files with 3 additions and 0 deletions

View File

@@ -211,6 +211,7 @@ The included `docker-compose.yml` provides a complete setup with:
| `REDIS_USERNAME` | Redis username (optional) | | username |
| `REDIS_PASSWORD` | Redis password (optional) | | password |
| `REDIS_DATABASE` | Redis database to use (optional) | 0 | 1 |
| `REDIS_CACHE_PREFIX` | Redis cache key prefix (optional) | | reitti_cache: |
| `ADVERTISE_URI` | Routable URL of the instance. Used for federation of multiple instances. (optional) | | https://reitti.lab |
| `DISABLE_LOCAL_LOGIN` | Whether to disable the local login form (username/password) This only works, if OIDC login is configured. | false | true |
| `OIDC_ENABLED` | Whether to enable OIDC sign-ins | false | true |

View File

@@ -18,6 +18,7 @@ spring.data.redis.port=${REDIS_PORT:6379}
spring.data.redis.username=${REDIS_USERNAME:}
spring.data.redis.password=${REDIS_PASSWORD:}
spring.data.redis.database=${REDIS_DATABASE:0}
spring.cache.redis.keyPrefix=${REDIS_CACHE_PREFIX:}
reitti.security.local-login.disable=${DISABLE_LOCAL_LOGIN:false}

View File

@@ -28,6 +28,7 @@ spring.data.redis.port=6379
spring.data.redis.username=
spring.data.redis.password=
spring.data.redis.database=0
spring.cache.redis.keyPrefix=
# RabbitMQ Configuration
spring.rabbitmq.host=localhost