Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xcaddy / caddy-security #203

Open
copolycube opened this issue Jul 9, 2024 · 2 comments
Open

xcaddy / caddy-security #203

copolycube opened this issue Jul 9, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@copolycube
Copy link
Contributor

Hello,
I currently use your role for installing caddy as it was the most straightforward way to configure and install caddy from ansible, but I as the requirement grew more complex I needed to change the caddy binary in order to use the security-caddy plugin to enable oauth with Caddy.

How would you achieve this (if possible) with your role ?

Thanks in advance for your help !

@mspae
Copy link

mspae commented Oct 16, 2024

To use caddy modules you need to compile a custom version of caddy using something like xcaddy.

Since this role installs a pre-built caddy from the repositories I don't think this is possible.

@maxhoesel
Copy link
Collaborator

Hi! As mentioned by @mspae, this is sadly not supported by the caddy_server role right now.
We currently only install caddy from the upstream repositories and there is no support for custom binaries.
As a workaround, you could install a custom caddy build externally and then use the modules included in this collection as normal.

I'd be interested in adding xcaddy/custom binary support to the caddy_server role in the future (this would also allow using DNS01 challenge plugins). Users would then be able to set a list of enabled plugins in a variable, with the role building the binary using xcaddy. If someone is willing to put in the effort I'd be happy to review and merge it!

@maxhoesel maxhoesel added the enhancement New feature or request label Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants