Fluxheim/Doiciméid/Suíomhanna statacha

Suíomhanna statacha

Serve HTML, CSS, images, agus downloads directly ó diosca. This is the simplest Fluxheim mode.

Cathain lena úsáid

Use static hosting do documentation, product leathanaigh, downloads, agus sites that do not need application code on each iarratas.

  • ETag agus conditional iarratais reduce repeat traffic.
  • Byte ranges work do larger comhaid.
  • Dotfiles should stay denied do poiblí roots.

Sampla suíomh statach

[[vhosts]]
name = "docs"
hosts = ["docs.example.com"]

[vhosts.web]
root = "/srv/docs"
index_files = ["index.html"]
deny_dotfiles = true

Príomhroghanna

RoghaÚsáid é nuair
rootYou want a teoranta filesystem root do poiblí comhaid.
index_filesA eolaire should resolve to an index comhad.
deny_dotfilesHidden comhaid must never become poiblí by accident.
directory_listingYou intentionally publish repository-style comhad indexes.

Sampla liostála stórtha

[[vhosts.routes]]
name = "repo"
path_prefix = "/repo/"

[vhosts.routes.web]
root = "/srv/repository/public"
index_files = ["index.html"]

[vhosts.routes.web.directory_listing]
enabled = true
exact_size = false

Directory listings stay private-cache by default, skip symlink entries, and still prefer index files when they exist.

Gaeilge