Page fetch service: Keenable-shaped API, SSRF guard, no access log
This commit is contained in:
commit
5f88cebede
6 files changed
+255
No files matched your search
+15
@@ -0,0 +1,15 @@
|
||||
FROM python:3.12-slim
|
||||
|
||||
WORKDIR /app/code
|
||||
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1
|
||||
|
||||
COPY requirements.txt ./
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY app/ ./app/
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
# No access log: the path carries the fetched URL, which is member search
|
||||
# output. Errors still reach Cloudron's log stream; URLs do not.
|
||||
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--no-access-log"]
|
||||
Reference in new issue
Block a user