From d986959927a4738cdb37ca709b88d523ca40086a Mon Sep 17 00:00:00 2001 From: Bruno Charest Date: Sun, 13 Sep 2026 09:51:54 -0400 Subject: [PATCH] fix(cloudflare): protect agent panel, workspaces & shell scripts from Rocket Loader; trust proxy headers --- Dockerfile | 2 +- app/templates/_header.html | 2 +- app/templates/_page_editor_realtime.html | 2 +- app/templates/agent_panel.html | 4 ++-- app/templates/base.html | 6 +++--- app/templates/workspaces.html | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index a3f06ff..32eff4f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,4 +41,4 @@ EXPOSE 8080 HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 \ CMD curl -f http://localhost:8080/api/health || exit 1 -CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8080"] \ No newline at end of file +CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8080", "--proxy-headers", "--forwarded-allow-ips", "*"] \ No newline at end of file diff --git a/app/templates/_header.html b/app/templates/_header.html index 24c982f..e10e79e 100644 --- a/app/templates/_header.html +++ b/app/templates/_header.html @@ -142,7 +142,7 @@ - + - +
@@ -1942,7 +1942,7 @@ } }); - +