feat 可配置服务端口 && 支持ipv6

This commit is contained in:
jxxghp
2023-07-22 22:03:27 +08:00
parent 606da355d2
commit 88a0d63198
4 changed files with 4 additions and 3 deletions

View File

@ -17,7 +17,7 @@ class Settings(BaseSettings):
ACCESS_TOKEN_EXPIRE_MINUTES: int = 60 * 24 * 8
# 时区
TZ: str = "Asia/Shanghai"
# 监听地址ipv6改为::
# API监听地址
HOST: str = "0.0.0.0"
# API监听端口
PORT: int = 3001