This commit is contained in:
jeremygan2021
2025-11-26 21:01:58 +08:00
parent a1872a7a33
commit 7236912a53
4 changed files with 20 additions and 16 deletions

View File

@@ -3,7 +3,9 @@ from typing import Optional
class Settings(BaseSettings):
# 数据库配置
database_url: str = "postgresql://luna:123luna@121.43.104.161:6432/luna_ink"
#database_url: str = "postgresql://luna:123luna@121.43.104.161:6432/luna"
database_url: str = "postgresql://luna:123luna@6.6.6.86:5432/luna"
# MQTT配置
mqtt_broker_host: str = "localhost"
@@ -25,7 +27,7 @@ class Settings(BaseSettings):
ink_height: int = 300
# 安全配置
secret_key: str = "your-secret-key-change-in-production"
secret_key: str = "123tangledup-ai"
algorithm: str = "HS256"
access_token_expire_minutes: int = 30
@@ -35,5 +37,6 @@ class Settings(BaseSettings):
class Config:
env_file = ".env"
case_sensitive = False
settings = Settings()