feat: implement source link endpoints and enforce policy rules
All checks were successful
Test / test (push) Successful in 1m56s
All checks were successful
Test / test (push) Successful in 1m56s
- Add POST/GET source link endpoints for file sharing via permanent URLs - Enforce max_size check in PATCH /file/content to prevent size limit bypass - Support is_private (proxy) vs public (302 redirect) storage modes - Replace all ResponseBase(data=...) with proper DTOs or 204 responses - Add 18 integration tests for source link and policy rule enforcement Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -109,6 +109,8 @@ default_settings: list[Setting] = [
|
||||
Setting(name="pwa_display", value="standalone", type=SettingsType.PWA),
|
||||
Setting(name="pwa_theme_color", value="#000000", type=SettingsType.PWA),
|
||||
Setting(name="pwa_background_color", value="#ffffff", type=SettingsType.PWA),
|
||||
Setting(name="logo_light", value="", type=SettingsType.BASIC),
|
||||
Setting(name="logo_dark", value="", type=SettingsType.BASIC),
|
||||
# ==================== 认证方式配置 ====================
|
||||
Setting(name="auth_email_password_enabled", value="1", type=SettingsType.AUTH),
|
||||
Setting(name="auth_phone_sms_enabled", value="0", type=SettingsType.AUTH),
|
||||
|
||||
Reference in New Issue
Block a user