Fluxheim/Doiciméid/Cuir Fluxheim ag rith

Cuir Fluxheim ag rith

Use this leathanach when you want a áitiúil server quickly. It keeps the config small agus seiceálacha it roimh freastal traffic.

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

Suíomh statach íosta

[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

Cad a dhéanann an chéad config

RoghaCuspóir
server.listenRialaíonn sé an soicéad HTTP plain a osclaíonn Fluxheim.
server.default_vhostSelects the fallback suíomh when no host matches.
vhosts.hostsLists the hostnames accepted by the suíomh.
vhosts.web.rootPoints at the eolaire served to cuairteoirí.

Seiceáil agus tosú

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

Use the config seiceáil in deployment scripts. It catches unknown fields, unsafe cosáin, invalid éisteoirí, agus feature/config mismatches roimh traffic moves.

Na chéad roghanna úsáideacha eile

  • Add TLS amháin tar éis 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.
Gaeilge