command
Version:
v0.0.0-...-f3e4cf9
Opens a new window with list of versions in this module.
Published: Nov 18, 2024
License: MIT
Opens a new window with license information.
Imports: 14
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Example Static Plugin
Build Caddy with
xcaddy build --with github.com/gsmlg-dev/caddy-handler-plugin
Build This Plugin
go build -ldflags "-X main.BuildTime=$(date +%s)" -o static.bin main.go
Run caddy
with Caddyfile
:8080 {
route {
handler_plugin * "/sites/static.bin" {
index_names "index.html" "index.txt"
file_suffix "html" "txt"
}
}
}
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.