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

Verifica la suma de comprobación SHA-256 publicada antes de extraer un archivo.

Linux x86_64

VERSION="1.8.3"
ARCHIVE="fluxheim-${VERSION}-full-x86_64-linux.tar.gz"
BASE_URL="https://github.com/valkyoth/fluxheim/releases/download/v${VERSION}"
curl -fLO "${BASE_URL}/${ARCHIVE}"
echo "faaa006fd2df31d43db69919bdcd79a4abd5f3b6c1f2928525bdaa56e8b83523  ${ARCHIVE}" | sha256sum -c -
tar -xzf "$ARCHIVE"
sudo install -m 0755 "fluxheim-${VERSION}-full-x86_64-linux/fluxheim" /usr/local/bin/fluxheim

macOS Apple Silicon

VERSION="1.8.3"
ARCHIVE="fluxheim-${VERSION}-full-aarch64-macos.tar.gz"
BASE_URL="https://github.com/valkyoth/fluxheim/releases/download/v${VERSION}"
curl -fLO "${BASE_URL}/${ARCHIVE}"
echo "e5cd2245932bfb1727d9deb4dc3df4b117f16eddff899c9579018d3d130a3d65  ${ARCHIVE}" | shasum -a 256 -c -
tar -xzf "$ARCHIVE"
install -d "$HOME/.local/bin"
install -m 0755 "fluxheim-${VERSION}-full-aarch64-macos/fluxheim" "$HOME/.local/bin/fluxheim"

Esta es una versión preliminar de línea de comandos sin firmar. Mantén Gatekeeper activado; todavía no se proporcionan firma con Developer ID, notarización ni integración con launchd.

Windows x86_64

$Version = "1.8.3"
$Archive = "fluxheim-$Version-full-x86_64-windows.zip"
$BaseUrl = "https://github.com/valkyoth/fluxheim/releases/download/v$Version"
Invoke-WebRequest "$BaseUrl/$Archive" -OutFile $Archive
$Expected = "c55ced880957062debf3870387c295f149b24ae9cb9512c4655d804dd3bb55f2"
if ((Get-FileHash $Archive -Algorithm SHA256).Hash.ToLowerInvariant() -cne $Expected) { throw "Archive checksum verification failed" }
Expand-Archive -LiteralPath $Archive -DestinationPath "$env:LOCALAPPDATA\Fluxheim" -Force

Esta es una versión preliminar portátil sin firmar. Mantén activada la seguridad de SmartScreen y PowerShell; todavía no se proporcionan firma Authenticode ni instalador de servicio de Windows.

La supervisión administrada de PHP-FPM solo está disponible en Unix; Windows admite grupos FastCGI TCP externos.

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.listenControla 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