No reescribí Homepage: es la imagen oficial. Lo mío es el inventario y la frontera público / VPN. Las webs y el panel de Dabot tienen cara en internet; Nextcloud, AdGuard, Uptime Kuma y Syncthing no.
I did not rewrite Homepage — official image. The work is the inventory and the public/VPN split. The websites and the Dabot dashboard are public; the rest of the UIs are not.
Cómo está montado
How it's wired
público
Internetvisitantes
→
CloudflareDNS · proxy · túnel
→
nginx :443TLS · cabeceras · rate limit
→
Dockerwebs · API de Dabot · Nexo
privado
Mis dispositivosportátil · móvil
→
WireGuardred privada
→
Nextcloud · Immich · AdGuardBeszel · Uptime Kuma
Desde internet solo se ve el puerto 443 de nginx, detrás de Cloudflare. Los paneles de gestión y los servicios personales escuchan en 127.0.0.1 o en la IP del servidor dentro de la VPN, así que no existen para quien no esté conectado a WireGuard. CrowdSec lee los logs de nginx y SSH y bloquea IPs que se portan mal.
From the internet you only see nginx on port 443, behind Cloudflare. Management dashboards and personal services listen on 127.0.0.1 or on the server's VPN address, so they don't exist for anyone who isn't on WireGuard. CrowdSec reads the nginx and SSH logs and blocks misbehaving IPs.
Decisiones y trade-offs
Qué elegí, por qué y qué me haría cambiar de opinión.
Un único VPS con Docker Compose en lugar de Kubernetes
por quéEs una sola máquina: cada servicio es un archivo Compose que se lee de un vistazo y se levanta con un comando. Kubernetes añadiría un plano de control entero sin ganar nada con un único nodo.
cuándo cambiaríaCon varios nodos o si algo necesitara alta disponibilidad de verdad.
Paneles solo por WireGuard en lugar de publicarlos con login
por quéLo que no está expuesto no se puede atacar: desde internet solo se ve el 443 de nginx, y Nextcloud, Immich o Beszel solo responden dentro de la VPN o en localhost.
cuándo cambiaríaSi otras personas necesitaran entrar sin VPN, pondría delante un proxy de identidad (Authelia o Cloudflare Access).
Cloudflare delante de nginx
por quéOculta la IP del servidor, absorbe tráfico malicioso y cachea lo estático. El precio es depender de un tercero con reglas propias: por ejemplo, cambia Cache-Control: no-cache por su TTL de 4 horas, así que mis CSS y JS van con no-store.
cuándo cambiaríaSi el tráfico fuera solo interno, o si necesitara controlar la caché al milímetro, serviría directamente desde nginx.
Decisions and trade-offs
What I chose, why, and what would make me change my mind.
A single VPS with Docker Compose instead of Kubernetes
whyIt's one machine: each service is a Compose file you can read at a glance and start with one command. Kubernetes would add a whole control plane and gain nothing on a single node.
when I'd change itWith several nodes, or if something truly needed high availability.
Dashboards only over WireGuard instead of publishing them behind a login
whyWhat isn't exposed can't be attacked: from the internet you only see nginx on 443, and Nextcloud, Immich or Beszel only answer inside the VPN or on localhost.
when I'd change itIf other people needed access without the VPN, I'd put an identity-aware proxy (Authelia or Cloudflare Access) in front.
Cloudflare in front of nginx
whyIt hides the server's IP, soaks up malicious traffic and caches static files. The price is depending on a third party with its own rules: for example, it swaps Cache-Control: no-cache for its 4-hour TTL, so my CSS and JS ship with no-store.
when I'd change itIf traffic were internal only, or I needed precise control over caching, I'd serve straight from nginx.
Grupos en services.yaml
Webs y nube
davito.dev, davito.es, Nextcloud, Immich, Syncthing y AdGuard Home.
Bots
Dabot con su API y sus cuatro DJ, Nexo Bot y la red de Minecraft NexoMC.
Vigilancia
Uptime Kuma, Beszel, CrowdSec y Watchtower.
Plataforma
nginx, el túnel de Cloudflare y las bases de datos de cada servicio.
El repo sustituye el host del túnel por VPN_HOST. No hay tokens de widgets ni IPs internas.
The public repo uses VPN_HOST instead of the tunnel address. No widget tokens, no internal IPs.