Enable HTTPS production deployment on Sinbad2 via Apache reverse proxy.

This commit is contained in:
Mireya Cueto Garrido
2026-06-03 10:41:02 +02:00
parent 31be326f2c
commit cccbe15275
22 changed files with 264 additions and 28 deletions
+12 -1
View File
@@ -1,4 +1,4 @@
FROM python:3.10-slim
FROM python:3.10-slim AS base
WORKDIR /app
@@ -8,4 +8,15 @@ RUN pip install --no-cache-dir -r requirements.txt
COPY . .
FROM base AS development
CMD ["uvicorn", "api.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
FROM base AS production
CMD ["uvicorn", "api.main:app", \
"--host", "0.0.0.0", \
"--port", "8000", \
"--proxy-headers", \
"--forwarded-allow-ips", "*", \
"--no-server-header"]