From 62f1906276222ea1972edf4b46d1156d49c86d91 Mon Sep 17 00:00:00 2001 From: Sebastian Frank Date: Wed, 11 Feb 2026 14:25:26 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20fix:=20update=20Traefik=20router?= =?UTF-8?q?=20rule=20for=20MCP/curl=20access=20to=20include=20host=20condi?= =?UTF-8?q?tion=20=E2=9C=A8=20feat:=20enable=20sending=20default=20PII=20i?= =?UTF-8?q?n=20Sentry=20initialization?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose-local.yml | 4 ++-- frontend/src/sentry.ts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docker-compose-local.yml b/docker-compose-local.yml index bfc11ee..5ef9331 100644 --- a/docker-compose-local.yml +++ b/docker-compose-local.yml @@ -20,8 +20,8 @@ services: - traefik.enable=true - online.testversion.code.subdomain=${PROJECT_NAME} # Create two routers: one without auth for MCP/curl, one with auth for others - # Router 1: MCP/curl access (based on user-agent header) - - traefik.http.routers.${PROJECT_NAME}-yarnstart-mcp.rule=HeadersRegexp(`User-Agent`, `.*(Playwright|puppeteer|Headless|curl).*`) + # Router 1: MCP/curl access (based on host + user-agent header) + - traefik.http.routers.${PROJECT_NAME}-yarnstart-mcp.rule=Host(`${PROJECT_NAME}.code.testversion.online`) && HeadersRegexp(`User-Agent`, `.*(Playwright|puppeteer|Headless|curl).*`) - traefik.http.routers.${PROJECT_NAME}-yarnstart-mcp.priority=100 - traefik.http.routers.${PROJECT_NAME}-yarnstart-mcp.service=${PROJECT_NAME}-yarnstart # Router 2: Regular access with basic auth diff --git a/frontend/src/sentry.ts b/frontend/src/sentry.ts index 510e480..847dedd 100644 --- a/frontend/src/sentry.ts +++ b/frontend/src/sentry.ts @@ -25,6 +25,7 @@ export const init = (dsn: string, tracingOrigins: (string | RegExp)[], environme release: release, replaysSessionSampleRate: 1.0, replaysOnErrorSampleRate: 1.0, + sendDefaultPii: true, }) console.log("Sentry initialized") initialized = true