Skip to content

Commit

Permalink
Fix: forgot to remove init
Browse files Browse the repository at this point in the history
  • Loading branch information
steffenbusch committed Oct 26, 2024
1 parent 71e3696 commit 638b8b7
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions extra_placeholders.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import (
"time"

"github.com/caddyserver/caddy/v2"
"github.com/caddyserver/caddy/v2/caddyconfig/httpcaddyfile"
"github.com/caddyserver/caddy/v2/modules/caddyhttp"
"github.com/shirou/gopsutil/v4/host"
"github.com/shirou/gopsutil/v4/load"
Expand All @@ -36,13 +35,6 @@ type ExtraPlaceholders struct {
logger *zap.Logger
}

func init() {
// Register the module with Caddy and specify where in the directive order it should be applied.
caddy.RegisterModule(ExtraPlaceholders{})
httpcaddyfile.RegisterHandlerDirective("extra_placeholders", parseCaddyfile)
httpcaddyfile.RegisterDirectiveOrder("extra_placeholders", "before", "redir")
}

// Placeholder | Description
// ------------|-------------
// `{extra.caddy.version.simple}` | Simple version information of the Caddy server.
Expand Down

0 comments on commit 638b8b7

Please sign in to comment.