fix
This commit is contained in:
22
.env
22
.env
@@ -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
2
.gitignore
vendored
@@ -18,7 +18,7 @@ env/
|
|||||||
*.swo
|
*.swo
|
||||||
|
|
||||||
# Environment
|
# Environment
|
||||||
.env
|
backend/.env
|
||||||
|
|
||||||
# OS
|
# OS
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|||||||
@@ -1,8 +1,12 @@
|
|||||||
|
from pathlib import Path
|
||||||
|
|
||||||
from pydantic_settings import BaseSettings
|
from pydantic_settings import BaseSettings
|
||||||
|
|
||||||
|
_env_file = Path(__file__).resolve().parents[2] / ".env"
|
||||||
|
|
||||||
|
|
||||||
class Settings(BaseSettings):
|
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
|
||||||
DATABASE_URL: str = "postgresql+asyncpg://velobrain:velobrain@localhost:5432/velobrain"
|
DATABASE_URL: str = "postgresql+asyncpg://velobrain:velobrain@localhost:5432/velobrain"
|
||||||
|
|||||||
Reference in New Issue
Block a user