Marrrrrrrrry
61d72ab6cc
perf: cache settings refresh behind a 2s TTL, force refresh on write paths (D6)
2026-09-09 18:47:40 +08:00
Marrrrrrrrry
5121db6edc
feat: rename all config keys to snake_case with DB migration 007
...
- 20 camelCase keys (uploadSize, expireStyle, openUpload, ...) renamed across
DEFAULT_CONFIG, settings accessors, setup form fields, and ConfigService
- migrations_007 renames keys inside the existing settings KeyValue row,
preserving all values for existing deployments
- schema guard meta-test keeps future keys declared
2026-09-09 18:09:19 +08:00
Marrrrrrrrry
6587ec86be
refactor: extract setup wizard and public pages from main.py (945 -> 148 lines)
...
- apps/base/setup_wizard.py: form parsing rules, setup options, and the
two admin-facing HTML pages
- apps/base/pages.py: setup/assets/index/robots/public-config routes and
theme resolution (404 handler registered on the app in main.py)
- tests updated to import from the new modules
2026-09-09 17:25:42 +08:00
Marrrrrrrrry
3396644da3
refactor: move config and tasks modules from core to apps/base (core no longer imports apps)
2026-09-09 17:00:42 +08:00
Marrrrrrrrry
177a212c0f
test: add shared test helpers and ASGI fixtures, dedupe 10x boilerplate
...
- tests/helpers.py: SettingsOverrideMixin + init_memory_db()/close_db()
- tests/conftest.py: httpx ASGI client fixtures (db, client, initialized_client)
- enable pytest asyncio_mode=auto
- replace 6 duplicated SettingsOverrideMixin copies and 4 duplicated
Tortoise.init blocks across the legacy unittest suite
2026-09-08 17:47:21 +08:00
vastsa
eda0a3127a
fix: add magic-byte checks, login rate limits, and non-root Docker
...
Close the remaining security gaps: validate upload content against
file signatures, rate-limit admin login failures with configurable
thresholds, and run the container as uid 1000 instead of root.
2026-07-23 22:23:04 +08:00
Lan
818dd47b2a
feat: add global storage capacity limit
2026-07-11 17:50:26 +08:00
Lan
93ff291366
feat: configure admin session lifetime ( #484 )
2026-07-10 19:21:00 +08:00
Lan
cdaf3638b8
feat: add first-run setup security flow
2026-06-16 00:49:43 +08:00