Pridan nginx pro servirovani statickych souboru, uprava fotek

This commit is contained in:
Michal Kváček
2023-07-10 08:12:20 +02:00
parent f8245492b9
commit 208d51bbc2
5 changed files with 48 additions and 23 deletions
+1 -2
View File
@@ -1,12 +1,11 @@
import os
import uuid
from typing import Optional
from strawberry.file_uploads import Upload
def get_public_url(filename: Optional[str]):
return f"http://localhost:8000/uploads/{filename}" if filename else None
return f"http://localhost:8999/{filename}" if filename else None
def check_directories(path: str):