We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6e723c commit 25f7a22Copy full SHA for 25f7a22
app/core/config.py
@@ -21,6 +21,7 @@ class Settings(BaseSettings):
21
ADDON_NAME: str = "Watchly"
22
REDIS_URL: str = "redis://redis:6379/0"
23
TOKEN_SALT: str = "change-me"
24
+ REDIS_TOKEN_KEY: str = "watchly:token:"
25
TOKEN_TTL_SECONDS: int = 0 # 0 = never expire
26
ANNOUNCEMENT_HTML: str = ""
27
AUTO_UPDATE_CATALOGS: bool = True
app/services/token_store.py
@@ -16,7 +16,7 @@
16
class TokenStore:
17
"""Redis-backed store for user credentials and auth tokens."""
18
19
- KEY_PREFIX = "watchly:token:"
+ KEY_PREFIX = settings.REDIS_TOKEN_KEY
20
def __init__(self) -> None:
self._client: redis.Redis | None = None
0 commit comments