Qabbad lil Fluxheim jaħdem
Uża din il-paġna meta trid server lokali malajr. Iżżomm il-config żgħir u tiċċekkjah qabel ma sservi traffiku.
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
Sit statiku minimu
[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
X’jagħmel l-ewwel config
| Għażla | Għan |
|---|---|
server.listen | Jikkontrolla s-socket HTTP sempliċi li jiftaħ Fluxheim. |
server.default_vhost | Selects the fallback sit when no host matches. |
vhosts.hosts | Lists the hostnames accepted by the sit. |
vhosts.web.root | Points at the direttorju served to viżitaturi. |
Iċċekkja u ibda
fluxheim --config /etc/fluxheim/fluxheim.toml --check-config
fluxheim --config /etc/fluxheim/fluxheim.toml
Use the config kontroll in deployment scripts. It catches unknown fields, unsafe paths, invalid listeners, u feature/config mismatches qabel traffic moves.
L-għażliet utli li jmiss
- Add TLS biss wara 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.