firecow / caddy-forward-auth

Forward auth middleware for caddyserver

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crash when initializing plugin

mildred opened this issue · comments

With the latest Caddy using this plugin as downloaded from https://caddyserver.com/download?package=github.com%2Ffirecow%2Fcaddy-forward-auth the Caddy server crashes with:

github.com/caddyserver/caddy/v2/caddyconfig/httpcaddyfile.RegisterDirective(...)
	github.com/caddyserver/caddy/v2@v2.5.1/caddyconfig/httpcaddyfile/directives.go:100
github.com/caddyserver/caddy/v2/caddyconfig/httpcaddyfile.RegisterHandlerDirective({0x199a9ee?, 0xc?}, 0x1a84658?)
	github.com/caddyserver/caddy/v2@v2.5.1/caddyconfig/httpcaddyfile/directives.go:110 +0x114
github.com/firecow/caddy-forward-auth.init.0()
	github.com/firecow/caddy-forward-auth@v0.0.0-20220506175350-80b7a56c2cfa/forwardauth.go:16 +0x5e

Oops, that might be because this is now a standard Caddy feature...

It's not implemented in Caddy..
Caddy just overtook the forward_auth directive.
I'll be renaming this to something or discontinuing it if the native Caddy can do my bidding 😁