load dotenv everywhere it's needed; postgresql pool pre ping
This commit is contained in:
+3
-2
@@ -1,8 +1,9 @@
|
||||
import oss2
|
||||
import httpx
|
||||
import os
|
||||
import io
|
||||
from fastapi import HTTPException
|
||||
from dotenv import load_dotenv
|
||||
|
||||
load_dotenv()
|
||||
|
||||
# 加载配置
|
||||
ACCESS_KEY_ID = os.getenv("S3_ACCESS_KEY_ID")
|
||||
|
||||
Reference in New Issue
Block a user