- Introduced `uv.lock` for dependency management with various packages including `pytest`, `colorama`, and `pluggy`. - Added `pyrightconfig.json` for Python type checking configuration. - Expanded `recommendations.md` with detailed scaling recommendations and project management strategies. - Created shared `ruff.toml` for consistent linting across projects. - Developed `Castle Tools` with various utilities including Android backup, browser automation, document conversion, and search tools. - Implemented `backup-collect` and `schedule` tools for system administration tasks. - Enhanced `search` functionality with indexing and querying capabilities using Tantivy. - Added comprehensive documentation for each tool, including usage examples and installation instructions.
22 lines
422 B
Python
22 lines
422 B
Python
"""Configuration for dashboard-api."""
|
|
|
|
from pathlib import Path
|
|
|
|
from pydantic_settings import BaseSettings
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
"""Service settings loaded from environment variables."""
|
|
|
|
castle_root: Path = Path("/data/repos/castle")
|
|
host: str = "0.0.0.0"
|
|
port: int = 9020
|
|
|
|
model_config = {
|
|
"env_prefix": "DASHBOARD_API_",
|
|
"env_file": ".env",
|
|
}
|
|
|
|
|
|
settings = Settings()
|