mirror of
https://git.oceanpay.cc/danial/kami_jd_bind_card.git
synced 2025-12-18 22:33:39 +00:00
feat(config): 添加服务器设置并调整配置结构
- 在 config.yml 中新增 server 部分,包含主机、日志、端口和调试模式设置 - 更新 settings.py 以包含 ServerSettings 类 - 调整 config.yml 中的 address 部分格式
This commit is contained in:
@@ -50,6 +50,7 @@ class Settings(BaseSettings):
|
||||
redis: RedisSettings = Field(default_factory=RedisSettings)
|
||||
proxies: ProxySettings = Field(default_factory=ProxySettings)
|
||||
model_config = SettingsConfigDict(yaml_file="./config/config.yml", extra="ignore")
|
||||
server: ServerSettings = Field(default_factory=ServerSettings)
|
||||
|
||||
@classmethod
|
||||
def settings_customise_sources(
|
||||
|
||||
@@ -8,4 +8,12 @@ proxies:
|
||||
address:
|
||||
- http://fga3568:fga3568@219.152.50.19:6588
|
||||
- http://fga3568:fga3568@125.74.88.251:6588
|
||||
- http://fga3568:fga3568@36.111.202.63:6588
|
||||
- http://fga3568:fga3568@36.111.202.63:6588
|
||||
|
||||
server:
|
||||
host: 0.0.0.0
|
||||
logger:
|
||||
level: INFO
|
||||
path: ./data/log
|
||||
port: 8080
|
||||
debug: true
|
||||
Reference in New Issue
Block a user