Merge branch 'master' of https://github.com/davidmonterocrespo24/wokwi_clon
commit
5f2c176648
|
|
@ -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);
|
||||
}
|
||||
|
|
@ -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 }
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue