Fluxheim/Documentació/Posar Fluxheim en marxa

Posar Fluxheim en marxa

Usa aquesta pàgina quan vulguis un servidor local ràpid. Manté la config petita i la comprova abans de servir trànsit.

Install a release binary

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

Lloc estàtic mínim

[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è fa la primera config

OpcióPropòsit
server.listenControla el socket HTTP plain que obre Fluxheim.
server.default_vhostSelecciona el lloc fallback quan cap host coincideix.
vhosts.hostsLlista els hostnames acceptats pel lloc.
vhosts.web.rootApunta al directori servido a visitants.

Comprovar i arrencar

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

Usa config check en scripts de deployment. Detecta campos desconeguts, paths inseguros, listeners inválidos i desajustes feature/config antes de moure trànsit.

Siguientes opcions útiles

  • Afegeix TLS només després que el DNS apunti a l'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.
Català