feat: project scaffold (FastAPI backend, React frontend, aiogram bot, docker-compose, CI/CD)
This commit is contained in:
1 parent
066deaca47
commit
71460ab56a
37 files changed
+936
No files matched your search
Whitespace-only changes.
@@ -0,0 +1,45 @@
|
||||
"""Конфигурация приложения (переменные окружения)."""
|
||||
from pydantic_settings import BaseSettings, SettingsConfigDict
|
||||
|
||||
|
||||
class Settings(BaseSettings):
|
||||
model_config = SettingsConfigDict(env_file=".env", extra="ignore")
|
||||
|
||||
# Общие
|
||||
app_name: str = "opora"
|
||||
environment: str = "dev"
|
||||
debug: bool = False
|
||||
|
||||
# База данных
|
||||
database_url: str = "postgresql+psycopg://opora:opora@postgres:5432/opora"
|
||||
|
||||
# Redis / Celery
|
||||
redis_url: str = "redis://redis:6379/0"
|
||||
celery_broker_url: str = "redis://redis:6379/1"
|
||||
celery_result_backend: str = "redis://redis:6379/2"
|
||||
|
||||
# JWT
|
||||
jwt_secret: str = "change-me"
|
||||
jwt_algorithm: str = "HS256"
|
||||
access_token_ttl_days: int = 30
|
||||
refresh_token_ttl_days: int = 30
|
||||
|
||||
# CORS
|
||||
cors_origins: list[str] = ["https://opora.my-dpr.ru"]
|
||||
|
||||
# MinIO / S3
|
||||
s3_endpoint: str = "http://minio:9000"
|
||||
s3_access_key: str = "minio"
|
||||
s3_secret_key: str = "minio123"
|
||||
s3_bucket: str = "artifacts"
|
||||
|
||||
# Мессенджеры
|
||||
telegram_bot_token: str = ""
|
||||
max_bot_token: str = ""
|
||||
|
||||
# LLM
|
||||
openrouter_api_key: str = ""
|
||||
llm_model: str = "deepseek/deepseek-chat"
|
||||
|
||||
|
||||
settings = Settings()
|
||||
Reference in new issue
Block a user