From 60e737c2d4f5bd825025c233d58fe94cdb88cdbf Mon Sep 17 00:00:00 2001 From: root Date: Sat, 7 Mar 2026 18:18:19 +0100 Subject: [PATCH 1/2] fix: add trailing slash to compile endpoint to avoid HTTP redirect --- frontend/src/services/compilation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/services/compilation.ts b/frontend/src/services/compilation.ts index f0a173d..554bd29 100644 --- a/frontend/src/services/compilation.ts +++ b/frontend/src/services/compilation.ts @@ -28,7 +28,7 @@ export async function compileCode( console.log('Files:', files.map((f) => f.name)); const response = await axios.post( - `${API_BASE}/compile`, + `${API_BASE}/compile/`, { files, board_fqbn: board }, { withCredentials: true } ); From a4d2eebfd3b81cb5e0001c3af35e21ba73f570bc Mon Sep 17 00:00:00 2001 From: root Date: Sat, 7 Mar 2026 21:56:31 +0100 Subject: [PATCH 2/2] fix --- .../sketch.ino | 11 +++++++++++ nginx-host-velxio-temp.conf | 19 +++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 data/projects/219c3d17-9914-4735-a591-908e589ebbef/sketch.ino create mode 100644 nginx-host-velxio-temp.conf diff --git a/data/projects/219c3d17-9914-4735-a591-908e589ebbef/sketch.ino b/data/projects/219c3d17-9914-4735-a591-908e589ebbef/sketch.ino new file mode 100644 index 0000000..c21afe5 --- /dev/null +++ b/data/projects/219c3d17-9914-4735-a591-908e589ebbef/sketch.ino @@ -0,0 +1,11 @@ +// Arduino Blink Example +void setup() { + pinMode(LED_BUILTIN, OUTPUT); +} + +void loop() { + digitalWrite(LED_BUILTIN, HIGH); + delay(1000); + digitalWrite(LED_BUILTIN, LOW); + delay(1000); +} \ No newline at end of file diff --git a/nginx-host-velxio-temp.conf b/nginx-host-velxio-temp.conf new file mode 100644 index 0000000..b8faa2c --- /dev/null +++ b/nginx-host-velxio-temp.conf @@ -0,0 +1,19 @@ +# Configuración temporal SIN SSL para obtener certificado +server { + listen 80; + server_name velxio.dev www.velxio.dev; + + # Let's Encrypt challenge + location /.well-known/acme-challenge/ { + root /var/www/html; + } + + # Proxy temporal al contenedor + location / { + proxy_pass http://127.0.0.1:3080; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + } +}