feat: add content length to file upload endpoint, cors for local dev

This commit is contained in:
BennyKok
2024-01-16 00:46:07 +08:00
parent aa0e3e987c
commit 478859d9b5
4 changed files with 21 additions and 2 deletions
+2 -1
View File
@@ -1,2 +1,3 @@
#!/usr/bin/env bash
awslocal s3 mb s3://comfyui-deploy
awslocal s3 mb s3://comfyui-deploy
awslocal s3api put-bucket-cors --bucket comfyui-deploy --cors-configuration file:///app/web/aws/cors-config.json
+15
View File
@@ -0,0 +1,15 @@
{
"CORSRules": [
{
"AllowedHeaders": [
"*"
],
"AllowedMethods": [
"PUT"
],
"AllowedOrigins": [
"*"
]
}
]
}