Fac Fluxheim currere
Utere hac pagina cum minister localis cito opus est. Config parvum servat et probat antequam trafficum serviat.
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
Situs staticus minimus
[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
Quid primum config facit
| Optio | Propositum |
|---|---|
server.listen | Fluxheim campum moderatur HTTP nervum aperit. |
server.default_vhost | Selects the fallback situs when no host matches. |
vhosts.hosts | Lists the hostnames accepted by the situs. |
vhosts.web.root | Points at the directorium served to visitatores. |
Proba et incipe
fluxheim --config /etc/fluxheim/fluxheim.toml --check-config
fluxheim --config /etc/fluxheim/fluxheim.toml
Use the config probatio in deployment scripts. It catches unknown fields, unsafe semitae, invalid listeners, et feature/config mismatches ante traffic moves.
Proximae optiones utiles
- Add TLS tantum post DNS points at the 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.