修改后端
This commit is contained in:
parent
0404c735ce
commit
10453f6454
@ -11,6 +11,13 @@ from dotenv import load_dotenv
|
||||
# 加载环境变量
|
||||
load_dotenv()
|
||||
|
||||
# 配置boto3使用环境变量
|
||||
boto3.setup_default_session(
|
||||
aws_access_key_id=os.getenv('AWS_ACCESS_KEY_ID'),
|
||||
aws_secret_access_key=os.getenv('AWS_SECRET_ACCESS_KEY'),
|
||||
region_name=os.getenv('AWS_DEFAULT_REGION')
|
||||
)
|
||||
|
||||
app = FastAPI()
|
||||
|
||||
# 配置CORS
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user