BTBurke / caddy-jwt

JWT middleware for the Caddy server
MIT License
114 stars 39 forks source link

Convert to Caddy 0.9 plugin format #6

Closed mholt closed 8 years ago

mholt commented 8 years ago

According to: https://github.com/mholt/caddy/wiki/Converting-Add-ons-to-Plugins

This was just a quick edit from the GitHub website, you should make sure this compiles. ;) Also don't forget to change any references in other files, I didn't get them all here.

mholt commented 8 years ago

Oh and I forgot to register the plugin, add this to your config.go file:

func init() {
    caddy.RegisterPlugin("jwt", caddy.Plugin{
        ServerType: "http",
        Action:     Setup,
    })
}
mholt commented 8 years ago

@BTBurke Once Caddy 0.9 is released, I will not be able to include this plugin on the download page until the plugin is updated to work with Caddy 0.9. 😞 (Sorry again about the breaking change.)

BTBurke commented 8 years ago

Ok. I'll work on it as soon as I can.

On Jun 30, 2016, at 10:10 AM, Matt Holt notifications@github.com wrote:

@BTBurke Once Caddy 0.9 is released, I will not be able to include this plugin on the download page until the plugin is updated to work with Caddy 0.9. 😞 (Sorry again about the breaking change.)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

mholt commented 8 years ago

10 is better / more thorough!