sync update from LAN repo (source master @ 6e3f02a2)

This commit is contained in:
gozeros committed 2026-11-17 11:28:22 +08:00
1 parent 66a443e915
commit 6c25c89d93
431 files changed
+68511 -2240

No files matched your search

@@ -8,6 +8,7 @@ deployment files. An effective non-empty API URL is the sole provider switch.
from __future__ import annotations
from dataclasses import dataclass
from typing import Literal
from urllib.parse import urlsplit, urlunsplit
from pydantic import BaseModel, ConfigDict, Field, field_validator, model_validator
@@ -145,6 +146,11 @@ class LocalWikiIndexConfig(BaseModel):
description="Allowed local dev frontend origins; wiki_url uses the request Origin when it matches.",
)
auto_sync: bool = False
# The administrator-facing schedule is persisted in system_settings.json.
# These fields live on the effective runtime config so the scheduler never
# needs to read the settings file separately from the runtime rebuild.
auto_sync_schedule: Literal["hourly", "daily"] = "hourly"
auto_sync_hour: int = Field(default=2, ge=0, le=23)
sync_interval_seconds: int = Field(default=30, ge=10, le=86400)
sync_page_size: int = Field(default=100, ge=1, le=500)
sync_concurrency: int = Field(default=3, ge=1, le=32)