test
This commit is contained in:
parent
11fa33be0a
commit
599817eec7
@ -1,9 +1,16 @@
|
||||
import os
|
||||
import secrets
|
||||
from pathlib import Path
|
||||
from typing import List
|
||||
|
||||
from dotenv import load_dotenv
|
||||
from pydantic import BaseSettings
|
||||
|
||||
load_dotenv(
|
||||
dotenv_path=Path(os.environ.get("CONFIG_DIR", "/config")) / "app.env",
|
||||
encoding="utf-8"
|
||||
)
|
||||
|
||||
|
||||
class Settings(BaseSettings):
|
||||
# 项目名称
|
||||
@ -285,6 +292,6 @@ class Settings(BaseSettings):
|
||||
|
||||
|
||||
settings = Settings(
|
||||
_env_file="/config/app.env",
|
||||
_env_file=Path(os.environ.get("CONFIG_DIR", "/config")) / "app.env",
|
||||
_env_file_encoding="utf-8"
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user