[image-service] updated ALLOWED_FOLDERS
This commit is contained in:
parent
88351993cf
commit
54ecb2ee8c
3 changed files with 35 additions and 8 deletions
14
main.py
14
main.py
|
|
@ -7,9 +7,19 @@ import uuid
|
|||
|
||||
app = FastAPI()
|
||||
|
||||
BASE_DIR = Path("/taobin_project")
|
||||
BASE_DIR = Path("/usr/src/app/taobin_project")
|
||||
# BASE_DIR = Path("/taobin_project")
|
||||
|
||||
ALLOWED_FOLDERS = {"page_drink",
|
||||
"page_drink_disable",
|
||||
"page_drink_disable_n",
|
||||
"page_drink_disable_n2",
|
||||
"page_drink_n",
|
||||
"page_drink_picture2_n",
|
||||
"page_drink_press",
|
||||
"page_drink_press_n",
|
||||
"page_drink_select"}
|
||||
|
||||
ALLOWED_FOLDERS = {"page_drink_n", "page_drink_press_n", "page_drink_disable_n2"}
|
||||
ALLOWED_EXTENSIONS = {".jpg", ".jpeg", ".png", ".gif", ".webp"}
|
||||
|
||||
def validate_folder(folder: str):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue