News for hackers. Stuff that matters.
Re:Show HN: Caddy 2 by coder543 on Monday May 04, 2020 @02:51PM (#23071813)
Maybe this has changed since I looked at things yesterday, but I couldn't find a list of default plugins anywhere on the website, nor how to configure those default plugins. I think this is what the person you're replying to is talking about.

On the old site, there was a plugin documentation page that made it trivial to see what the plugins were called and what options they took.

I eventually asked my local copy of Caddy what plugins were available, which answered one of the two questions, but am I missing some kind of documentation page?

The interactive, custom build page is an unrelated, but also interesting topic. About a year ago, I was using abiosoft's Caddy Builder image to build a Caddy docker image with the plugins I wanted, but this no longer seems to work even for Caddy V1, and I don't think it has been updated for V2. It would be awesome if there were an official Caddy Builder docker image. Even if the website existed, I would still have to wrap that binary in a docker image somehow for my own use cases.

But, these are all just my personal opinions -- I'm sure you have your own priorities for the project, and I'm excited to see V2 has officially released!

Re:Show HN: Caddy 2 by m_sahaf on Monday May 04, 2020 @03:04PM (#23071963)
The list of core plugins (now called modules) is here: https://caddyserver.com/docs/modules/

If you're navigating from the homepage, click on "Documentation" at the top, then click on "modules" on the left navbar just above "JSON Config Structure". That list is generated directly from the source code, so it is the definite list of what's included by default and supported by the native JSON config.

The other way is, as you found out, to run `caddy list-modules` to get the definitive list of what's packed into the binary.

Re:Show HN: Caddy 2 by coder543 on Monday May 04, 2020 @03:07PM (#23071993)
Thanks, this is what I was looking for!
Re:Show HN: Caddy 2 by mholt on Monday May 04, 2020 @02:58PM (#23071896)
The new website does not yet have the ability to register plugins. I'm writing it -- I already have the new build server mostly written -- but like with v1, it may take a few months.

It's not worth delaying the release for that, especially when we have tools like xcaddy that make it easy to build Caddy with plugins, no need to touch any code: https://github.com/caddyserver/xcaddy

Right now, the process is: find a plugin you like, then run:

    xcaddy build --with <module-path>
But yeah, it will get easier with time. We'll get there.
Re:Show HN: Caddy 2 by hairyhenderson on Monday May 04, 2020 @02:57PM (#23071886)
> It would be awesome if there were an official Caddy Builder docker image

You're in luck! :D

https://hub.docker.com/_/caddy

Note that the v2 images were _just_ pushed a few minutes ago, so the description might still point to rc3.

See "Adding custom Caddy modules" on that page for instructions on how to use the `caddy:builder` image.