more fixes

This commit is contained in:
magmaus3 2023-06-30 14:45:32 +02:00
parent 2028ed2001
commit bb0ec02a53
Signed by: magmaus3
GPG key ID: 966755D3F4A9B251
2 changed files with 2 additions and 2 deletions

View file

@ -4,5 +4,5 @@ WORKDIR /app
COPY . .
RUN pip install .
CMD python3 -m uvicorn lemmyprivacycheck.__main__:app --host 0.0.0.0 --port 8868
CMD python3 -m uvicorn lemmyprivacycheck.__main__:app --host 0.0.0.0 --port 8868 --proxy-headers
# CMD python3 -m gunicorn -w 4 -b 0.0.0.0 -k uvicorn.workers.UvicornWorker backend.main:app --reload

View file

@ -13,7 +13,7 @@ class JPEGResponse(fastapi.Response):
@app.get("/", response_class=PlainTextResponse)
async def root():
return "go to /image for the funny thingy"
return "go to /img for the funny thingy"
@app.get("/img", response_class=JPEGResponse)
async def getImage(request: fastapi.Request):