mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 07:27:15 +08:00
test
This commit is contained in:
+8
-1
@@ -1,9 +1,16 @@
|
|||||||
|
import os
|
||||||
import secrets
|
import secrets
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import List
|
from typing import List
|
||||||
|
|
||||||
|
from dotenv import load_dotenv
|
||||||
from pydantic import BaseSettings
|
from pydantic import BaseSettings
|
||||||
|
|
||||||
|
load_dotenv(
|
||||||
|
dotenv_path=Path(os.environ.get("CONFIG_DIR", "/config")) / "app.env",
|
||||||
|
encoding="utf-8"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class Settings(BaseSettings):
|
class Settings(BaseSettings):
|
||||||
# 项目名称
|
# 项目名称
|
||||||
@@ -285,6 +292,6 @@ class Settings(BaseSettings):
|
|||||||
|
|
||||||
|
|
||||||
settings = Settings(
|
settings = Settings(
|
||||||
_env_file="/config/app.env",
|
_env_file=Path(os.environ.get("CONFIG_DIR", "/config")) / "app.env",
|
||||||
_env_file_encoding="utf-8"
|
_env_file_encoding="utf-8"
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user