From e6507542ea6fe779f33dd436781ce3fde517482d Mon Sep 17 00:00:00 2001 From: a2nr Date: Sat, 5 Sep 2026 10:07:16 +0700 Subject: [PATCH] fix(proxy): remove velxio compile route conflict in tailscale serve config --- config/lms-tail.json.template | 6 ------ docs/02-backend-flask.md | 2 +- documentation.md | 2 +- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/config/lms-tail.json.template b/config/lms-tail.json.template index 2a3dda4..57ea0f4 100644 --- a/config/lms-tail.json.template +++ b/config/lms-tail.json.template @@ -13,12 +13,6 @@ "/assets/": { "Proxy": "http://127.0.0.1:5000/assets/" }, - "/velxio/api/compile/": { - "Proxy": "http://127.0.0.1:5000/velxio-compile/" - }, - "/velxio/api/compile": { - "Proxy": "http://127.0.0.1:5000/velxio-compile" - }, "/velxio/": { "Proxy": "__VELXIO_PROXY_TARGET__" }, diff --git a/docs/02-backend-flask.md b/docs/02-backend-flask.md index 7731d9f..5066534 100644 --- a/docs/02-backend-flask.md +++ b/docs/02-backend-flask.md @@ -39,7 +39,7 @@ The backend is built with Flask, providing API endpoints for the SvelteKit front ### Compilation (`routes/compile.py`) - `def compile_code():` (POST `/compile`) Accepts `code` and `language`. Routes execution to the sandboxed worker using the `CompilerFactory`. Incorporates rate-limiting for anonymous users. -- `def velxio_compile():` (POST `/velxio-compile` mapped from `/velxio/api/compile`) +- `def velxio_compile():` (POST `/velxio-compile` mapped from `/api/velxio-compile`) A proxy endpoint that forwards Arduino compilation requests to the Velxio container, enforcing rate limits for anonymous users. ### Progress Tracking (`routes/progress.py`) diff --git a/documentation.md b/documentation.md index 0a5f5f9..cc72ba6 100644 --- a/documentation.md +++ b/documentation.md @@ -292,7 +292,7 @@ Semua endpoint Flask diakses via SvelteKit proxy (`/api/*` → Flask `:5000`, pr | GET | `/api/lesson/.json` | `/lesson/.json` | Data lesson lengkap | | GET | `/api/get-key-text/` | `/get-key-text/` | Key text untuk lesson | | POST | `/api/compile` | `/compile` | Compile & run kode (C/Python) via worker | -| POST | `/velxio/api/compile` | `/velxio-compile` | **Rate-limited** Arduino compile proxy | +| POST | `/api/velxio-compile` | `/velxio-compile` | **Rate-limited** Arduino compile proxy | | POST | `/api/track-progress` | `/track-progress` | Track progress siswa | | GET | `/api/progress-report.json` | `/progress-report.json` | Data progress semua siswa | | GET | `/api/progress-report/export-csv` | `/progress-report/export-csv` | Export CSV |