From bb0ec02a5398f173ed5eb50aef949d0c9aa834a5 Mon Sep 17 00:00:00 2001 From: magmaus3 Date: Fri, 30 Jun 2023 14:45:32 +0200 Subject: [PATCH] more fixes --- Dockerfile | 2 +- lemmyprivacycheck/__main__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1db12fb..953f4ad 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/lemmyprivacycheck/__main__.py b/lemmyprivacycheck/__main__.py index 01e6bc2..95f76ca 100644 --- a/lemmyprivacycheck/__main__.py +++ b/lemmyprivacycheck/__main__.py @@ -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):