static_plugin

command
v0.0.0-...-f3e4cf9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2024 License: MIT Imports: 14 Imported by: 0

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

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL