Start support for pruning old inbox data
This commit is contained in:
parent
08618c3c72
commit
0ffacca796
3 changed files with 89 additions and 0 deletions
|
@ -72,6 +72,8 @@ class Config(pydantic.BaseModel):
|
|||
code_highlighting_theme = "friendly_grayscale"
|
||||
blocked_servers: list[_BlockedServer] = []
|
||||
|
||||
inbox_retention_days: int = 15
|
||||
|
||||
# Config items to make tests easier
|
||||
sqlalchemy_database: str | None = None
|
||||
key_path: str | None = None
|
||||
|
@ -118,6 +120,8 @@ if CONFIG.privacy_replace:
|
|||
|
||||
BLOCKED_SERVERS = {blocked_server.hostname for blocked_server in CONFIG.blocked_servers}
|
||||
|
||||
INBOX_RETENTION_DAYS = CONFIG.inbox_retention_days
|
||||
|
||||
BASE_URL = ID
|
||||
DEBUG = CONFIG.debug
|
||||
DB_PATH = CONFIG.sqlalchemy_database or ROOT_DIR / "data" / "microblogpub.db"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue