module
Version:
v0.1.1
Opens a new window with list of versions in this module.
Published: Jan 2, 2026
License: GPL-3.0
Opens a new window with license information.
README
¶
tree-sitter-caddy
Functionality
- Global options
- Option name
- Option value
- Block options
- Server
- Protocol, domain, port in any order
- Multiple addresses
- No need for
{} when only one server
- Environment variables in address ex.
{$DOMAIN:localhost}
- Tokens and quotes
- Matchers
- Placeholders
- Snippets
- Named Routes
- Comments
- Environment variables
- Types support
-
string
-
quoted strings
-
numerical
-
boolean
-
time (1s, 1m, 1h, 1d)
-
size (1KB, 1MiB)
- Expressions
- After-placeholder expressions (
{method}.startsWith("P"))
- Expressions (
header({'Connection':'*Upgrade*','Upgrade':'websocket'})
- Special cases
- Placeholders can't be found in random string (
redir https://www.{host}{uri})
Directories
¶
bindings
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.