From 4ed64e4db040fc22c9f1e6e1bde1d279d9bd20af Mon Sep 17 00:00:00 2001 From: hibobmaster <32976627+hibobmaster@users.noreply.github.com> Date: Sun, 20 Aug 2023 14:31:33 +0800 Subject: [PATCH] Update image tag and fix uvicorn get real ip --- Dockerfile | 2 +- compose.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 65dfb28..a1905d0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,4 +12,4 @@ COPY . /app FROM runner WORKDIR /app EXPOSE 8000 -CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000", "--proxy-headers"] \ No newline at end of file +CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000", "--proxy-headers", "--forwarded-allow-ips", "*"] \ No newline at end of file diff --git a/compose.yaml b/compose.yaml index d1b11eb..edc0b19 100644 --- a/compose.yaml +++ b/compose.yaml @@ -1,6 +1,6 @@ services: app: - image: hibobmaster/iplookupserver:test + image: hibobmaster/iplookupserver:latest ports: - "127.0.0.1:8000:8000" restart: no