Files
microdao-daarion/services/matrix-gateway/config.py
Apple 984f67c26e feat: Implement Matrix Rooms Bridge
- MATRIX_ROOMS_BRIDGE_SPEC.md documentation
- Migration 012: Add matrix_room_id/alias to city_rooms
- Matrix Gateway service (port 7025)
- City-service: auto-create Matrix rooms on room creation
- Backfill endpoint for existing rooms
- API returns matrix_room_id/alias in room responses
2025-11-26 12:33:54 -08:00

30 lines
665 B
Python

"""
Matrix Gateway Configuration
"""
from pydantic_settings import BaseSettings
from functools import lru_cache
class Settings(BaseSettings):
# Service
service_name: str = "matrix-gateway"
service_version: str = "1.0.0"
port: int = 7025
# Synapse
synapse_url: str = "http://daarion-synapse:8008"
synapse_admin_token: str = ""
matrix_server_name: str = "daarion.space"
# Registration secret (for creating rooms as admin)
synapse_registration_secret: str = "daarion_reg_secret_2024"
class Config:
env_prefix = "MATRIX_GATEWAY_"
@lru_cache()
def get_settings() -> Settings:
return Settings()