Extra directives
A box on the site’s settings for additions to this site’s server block, on top of whatever template it uses:Routing templates
How a kind of site routes requests, written once and shared across sites. A routing template is thelocation blocks and nothing else. Shipways writes
the TLS, the certificate challenge, the password prompt and the redirects
around it — the parts a site can be got badly wrong on stay outside a template
and are Shipways’ to get right once.
Every site starts on the built-in template, which is what a Laravel application
needs.
Available tokens:
Nothing in a template runs. It is text with holes in it, and the tokens are an
allow-list.
Whole-block templates
The whole file. Use one when you need something the routing half cannot express: another port, extra server blocks, TLS terms of your own. Every managed piece is offered as a token on top of the ones above, so a template that wants the usual TLS or the usual challenge location asks for it rather than copying it and letting the copy go stale:SERVER_NAME, LISTEN, TLS, ACME_CHALLENGE, BASIC_AUTH,
MAINTENANCE, REDIRECTS, HTTP_REDIRECT_BLOCK, ACCESS_LOG, ERROR_LOG,
CUSTOM_CONFIG.