This commit is contained in:
xds
2026-03-16 13:02:03 +03:00
parent 569c9b4b06
commit 4ca8ae3f7e
3 changed files with 6 additions and 24 deletions

22
.env
View File

@@ -1,22 +0,0 @@
# Database
DATABASE_URL=postgresql+asyncpg://sport_platform:VV1q2w3e4r!@31.59.58.220:5432/sport_platform
# Anthropic
ANTHROPIC_API_KEY=sk-ant-...
# Gemini
GEMINI_API_KEY=AIzaSyAHzDYhgjOqZZnvOnOFRGaSkKu4OAN3kZE
GEMINI_MODEL=gemini-3.1-pro-preview
# App
APP_SECRET_KEY=8S2aSrfih33CEHN2j7qAKMZ07wG2CbvyuqwaFgRLy4O
DEBUG=true
# Auth / JWT
JWT_SECRET_KEY=Jys4QlZP3ZPyNKKJBhSyPbqsHG1dU327ujYFZEYoyRT
# Telegram Bot
TELEGRAM_BOT_TOKEN=8100161487:AAHHJfNe0Ww12sGQih_osNK9gx1wrpe2ZHQ
TELEGRAM_BOT_USERNAME=sportplatformbot
# Upload
UPLOAD_DIR=./uploads

2
.gitignore vendored
View File

@@ -18,7 +18,7 @@ env/
*.swo
# Environment
.env
backend/.env
# OS
.DS_Store

View File

@@ -1,8 +1,12 @@
from pathlib import Path
from pydantic_settings import BaseSettings
_env_file = Path(__file__).resolve().parents[2] / ".env"
class Settings(BaseSettings):
model_config = {"env_file": ".env", "env_file_encoding": "utf-8"}
model_config = {"env_file": str(_env_file), "env_file_encoding": "utf-8"}
# Database
DATABASE_URL: str = "postgresql+asyncpg://velobrain:velobrain@localhost:5432/velobrain"