Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Admin

[backend] configures the admin panel. Every key is optional.

[backend]
secure_cookie = false            # true behind HTTPS
timezone = "UTC"                 # default display timezone, IANA name
path = "/admin"                  # where the admin mounts
trusted_proxies = []             # CIDR ranges whose X-Forwarded-For is believed
storage = "storage"              # where files the admin keeps go
secret = "a-long-random-string"  # signs timed URLs
skin = "standard"
upload_extensions = []
origin_check_except = ["/webhooks/*"]

[backend.order]
"backend.nav" = ["dashboard", "acme.shop", "media", "settings"]

[backend.menu]
"backend.access_log" = { in = "backend.nav", slot = "tools" }

[backend.paths]
"acme.places" = "/places"          # a whole module's screens
"acme.places/nodes" = "/places"    # one screen; the more specific key wins

Set the keys

KeyDescription
secure_cookieSets the Secure flag on cookies and sends Strict-Transport-Security (one year, subdomains included). true behind HTTPS.
timezoneDefault display timezone until a user picks their own. See Dates and Timezones.
pathURL path the admin mounts under.
trusted_proxiesCIDR ranges. X-Forwarded-For is read only from a peer inside one. Empty records the peer address.
pathsRemounts a module’s screens, or one screen, at another path. Two claims on one path abort the boot.
upload_extensionsThe file extensions an upload may carry, lowercased. Empty applies the default list (images, documents, audio, video, fonts, archives). See Media Library.
origin_check_exceptPaths a POST from another site may reach: an exact path, or a prefix ending in *. Only for endpoints that authenticate each request themselves. See Public Routes.
skinThe admin skin by code: standard (default), compact, or one a module registered. See Skins.
storageThe directory files the admin keeps go under, relative to the working directory unless absolute. Uploaded import files go to private beneath it.

Keep the media library in the project

[media]
folder = "public/media"
KeyDefaultMeaning
media.foldernoneA folder of the project the library stores its files in. Unset, the library uses <backend.storage>/media. With [theme] source = "git", every stored or removed file is committed.

A static build writes every file and variant under dist/storage/media/, at the paths the pages link to. order | Arrangement overrides by hierarchy: "backend.nav", "backend.nav.<section>", "backend.settings" or a plugin’s own, each a list of keys in the wanted order. See Navigation. menu | Entries moved out of their home, keyed by entry: { in, slot, order, category }. See Navigation. secret | The key timed URLs are signed with (a private file’s). Set it when several instances share one database.