docker
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user