Fluxheim/Documentos/Poner Fluxheim en marcha

Poner Fluxheim en marcha

Usa esta página cuando quieras un servidor local rápido. Mantiene la config pequeña y la comprueba antes de servir tráfico.

Instalar a release binary

curl -L https://github.com/valkyoth/fluxheim/releases/download/v1.6.30/fluxheim-1.6.30-full-x86_64-linux.tar.gz -o fluxheim.tar.gz
tar -xzf fluxheim.tar.gz
sudo install -m 0755 fluxheim /usr/local/bin/fluxheim

Sitio estático mínimo

[server]
listen = ["0.0.0.0:8080"]
default_vhost = "site"

[[vhosts]]
name = "site"
hosts = ["example.com"]

[vhosts.web]
root = "/srv/example"
index_files = ["index.html"]
deny_dotfiles = true

Qué hace la primera config

OpciónPropósito
server.listenControl operativo operativoa el socket HTTP plain que abre Fluxheim.
server.default_vhostSelecciona el sitio fallback cuando ningún host coincide.
vhosts.hostsLista los hostnames aceptados por el sitio.
vhosts.web.rootApunta al directorio servido a visitantes.

Comprobar y arrancar

fluxheim --config /etc/fluxheim/fluxheim.toml --check-config
fluxheim --config /etc/fluxheim/fluxheim.toml

Usa config check en scripts de deployment. Detecta campos desconocidos, paths inseguros, listeners inválidos y desajustes feature/config antes de mover tráfico.

Siguientes opciones útiles

  • Añade TLS solo después de que DNS apunte al host.
  • Add cache only for routes that are safe to share between visitors.
  • Add metrics only when the listener is private or behind a trusted proxy.
Español