velxio/docs/wiki
David Montero Crespo 531c337d19 fix(install): unblock self-hosting + drop forced wokwi clones
Resolves several install pain points reported by users (#108, #120) and
removes the obligatory upstream-clone step that confused contributors and
slowed down every Docker build.

Install fixes:
- nginx: server_name → catch-all default_server, drop Debian's stock site
  so reverse-proxied users no longer get the "Welcome to nginx" page.
- entrypoint: auto-generate SECRET_KEY at first boot, persisted under
  data/.secret_key. backend/.env is now optional in docker-compose.yml.
- backend: add greenlet>=3.0.0 (SQLAlchemy async dep that was missing on
  some Python builds — caused uvicorn startup failures on WSL).

Wokwi libs come from npm:
- @wokwi/elements 1.9.2, avr8js 0.21.0, rp2040js 1.3.2 are pinned in
  frontend/package.json. Vite aliases removed.
- Dockerfile.standalone no longer clones avr8js / rp2040js / wokwi-elements
  / wokwi-boards. Frontend stage is just COPY + npm install + build:docker.
- Board SVGs vendored under frontend/public/boards/ (10 deduped against
  existing files, 2 truly new). third-party/wokwi-* clones become reference-
  only credits — generate-component-metadata.ts skips gracefully when absent.

Production config split out:
- docker-compose.prod.yml, deploy/nginx.prod.conf, nginx-host-velxio*.conf,
  update-third-party.bat removed. Production deployment lives in its own
  repo: https://github.com/velxio/velxio-prod (host nginx + HTTPS + backups
  + pinned upstream commit).

Verified locally: 1161 frontend tests pass, build:docker completes clean.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-04 00:04:11 -03:00
..
circuit-emulation-adc-aliasing.md refactor: rename wokwi-libs/ → third-party/ 2026-05-03 00:58:57 -03:00
circuit-emulation-api.md feat: electrical simulation via ngspice-WASM (eecircuit-engine) 2026-04-15 12:11:54 +00:00
circuit-emulation-appendix.md feat: electrical simulation via ngspice-WASM (eecircuit-engine) 2026-04-15 12:11:54 +00:00
circuit-emulation-architecture.md feat: electrical simulation via ngspice-WASM (eecircuit-engine) 2026-04-15 12:11:54 +00:00
circuit-emulation-avr-bridge.md feat: electrical simulation via ngspice-WASM (eecircuit-engine) 2026-04-15 12:11:54 +00:00
circuit-emulation-components.md refactor: rename wokwi-libs/ → third-party/ 2026-05-03 00:58:57 -03:00
circuit-emulation-esp32-qemu.md refactor: rename wokwi-libs/ → third-party/ 2026-05-03 00:58:57 -03:00
circuit-emulation-gotchas.md Add tests for serial batching and spice rectifier functionality 2026-04-20 23:56:42 -03:00
circuit-emulation-mna-solver.md feat: electrical simulation via ngspice-WASM (eecircuit-engine) 2026-04-15 12:11:54 +00:00
circuit-emulation-ngspice.md feat: electrical simulation via ngspice-WASM (eecircuit-engine) 2026-04-15 12:11:54 +00:00
circuit-emulation-overview.md feat: electrical simulation via ngspice-WASM (eecircuit-engine) 2026-04-15 12:11:54 +00:00
circuit-emulation-performance.md feat: electrical simulation via ngspice-WASM (eecircuit-engine) 2026-04-15 12:11:54 +00:00
circuit-emulation-tests.md feat: electrical simulation via ngspice-WASM (eecircuit-engine) 2026-04-15 12:11:54 +00:00
circuit-emulation-velxio-integration.md feat: electrical simulation via ngspice-WASM (eecircuit-engine) 2026-04-15 12:11:54 +00:00
circuit-emulation.md feat: electrical simulation via ngspice-WASM (eecircuit-engine) 2026-04-15 12:11:54 +00:00
component-metadata-generator.md refactor: rename wokwi-libs/ → third-party/ 2026-05-03 00:58:57 -03:00
custom-chips-api-reference.md Add ESP32 chip demos and comprehensive tests for I2C, SPI, and UART interactions 2026-04-28 19:24:39 -03:00
custom-chips-build-and-test.md Add ESP32 chip demos and comprehensive tests for I2C, SPI, and UART interactions 2026-04-28 19:24:39 -03:00
custom-chips-esp32-backend-runtime.md Add ESP32 chip demos and comprehensive tests for I2C, SPI, and UART interactions 2026-04-28 19:24:39 -03:00
custom-chips-examples.md Add ESP32 chip demos and comprehensive tests for I2C, SPI, and UART interactions 2026-04-28 19:24:39 -03:00
docker-infrastructure.md fix(install): unblock self-hosting + drop forced wokwi clones 2026-05-04 00:04:11 -03:00
electrical-simulation-user-guide.md feat: electrical simulation via ngspice-WASM (eecircuit-engine) 2026-04-15 12:11:54 +00:00
epaper-emulation.md feat: add support for UC8159c (ACeP 7-colour) display 2026-04-30 00:27:40 -03:00
esp32-cache-disable-runtime-crash.md refactor: rename wokwi-libs/ → third-party/ 2026-05-03 00:58:57 -03:00
esp32-external-library-compilation.md feat: enhance Arduino library handling by detecting external libraries and creating IDF components, add tests for library resolution logic 2026-04-07 14:59:51 -03:00
esp32-gpio-sensor-simulation.md Add comprehensive documentation for ESP32 GPIO sensor simulation 2026-04-10 22:51:56 -03:00
esp32-i2c-slave-simulation.md refactor: rename wokwi-libs/ → third-party/ 2026-05-03 00:58:57 -03:00
esp32-wifi-emulation-fixes.md
micropython-esp32-qemu-fixes.md feat: Mark subproject commits as dirty in rp2040js and wokwi-elements; add MicroPython on ESP32 (QEMU) root causes and fixes documentation 2026-04-13 00:16:11 -03:00
picow-cyw43-emulation.md refactor: rename wokwi-libs/ → third-party/ 2026-05-03 00:58:57 -03:00