David Montero Crespo 2026-03-07 18:27:03 -03:00
commit 5f2c176648
3 changed files with 31 additions and 1 deletions

View File

@ -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);
}

View File

@ -28,7 +28,7 @@ export async function compileCode(
console.log('Files:', files.map((f) => f.name));
const response = await axios.post<CompileResult>(
`${API_BASE}/compile`,
`${API_BASE}/compile/`,
{ files, board_fqbn: board },
{ withCredentials: true }
);

View File

@ -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;
}
}