implement cors + add Dockerfile for frontend + compose

This commit is contained in:
Michi 2025-04-22 14:49:44 +02:00
parent 4af8161a11
commit b59a74645f
4 changed files with 74 additions and 4 deletions

View file

@ -23,8 +23,8 @@ COPY webservice.py .
COPY crypto.py .
COPY dbfunctions.py .
COPY models.py .
COPY certs/key.pem .
COPY certs/cert.pem .
COPY certs/server.key .
COPY certs/server.crt .
# Start app
CMD ["uvicorn", "webservice:app", "--host", "0.0.0.0", "--port", "8443", "--ssl-keyfile=key.pem", "--ssl-certfile=cert.pem"]
CMD ["uvicorn", "webservice:app", "--host", "0.0.0.0", "--port", "8443", "--ssl-keyfile=server.key", "--ssl-certfile=server.crt"]