package
0.0.0-20241118032829-f3e4cf991cf0
Repository: https://github.com/gsmlg-dev/caddy-handler-plugin.git
Documentation: pkg.go.dev

# 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