add server url for openapi spec, proxy headers spec
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Elizabeth Hunt 2024-08-07 21:23:58 -07:00
parent 9cdb7a145e
commit 6f223d2462
Signed by: simponic
GPG Key ID: 2909B9A7FF6213EE
2 changed files with 6 additions and 2 deletions

View File

@ -11,4 +11,4 @@ RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
COPY kennel /app/kennel COPY kennel /app/kennel
COPY static /app/static COPY static /app/static
COPY templates /app/templates COPY templates /app/templates
CMD ["uvicorn", "kennel.main:app", "--host", "0.0.0.0", "--port", "8000"] CMD ["uvicorn", "kennel.main:app", "--host", "0.0.0.0", "--port", "8000", "--proxy-headers", "--forwarded-allow-ips", "*"]

View File

@ -5,7 +5,11 @@ from fastapi import FastAPI, Request, Response
from fastapi.staticfiles import StaticFiles from fastapi.staticfiles import StaticFiles
from fastapi.templating import Jinja2Templates from fastapi.templating import Jinja2Templates
app = FastAPI() app = FastAPI(
servers = [
{"url": "https://kennel.hatecomputers.club", "description": "prod"}
]
)
logger = structlog.get_logger() logger = structlog.get_logger()