# 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"
}
}
}
# Constants
No description provided by the author
# Variables
No description provided by the author
# Structs
No description provided by the author