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

docs: add custom Caddy modules #287

Merged
merged 1 commit into from
Nov 7, 2023
Merged

docs: add custom Caddy modules #287

merged 1 commit into from
Nov 7, 2023

Conversation

dunglas
Copy link
Owner

@dunglas dunglas commented Oct 31, 2023

Closes #267.

Comment on lines +48 to +51
FROM dunglas/frankenphp:latest-builder AS builder

# Copy xcaddy in the builder image
COPY --from=caddy:builder /usr/bin/xcaddy /usr/bin/xcaddy
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any reason that dunglas/frankenphp:latest-builder doesn't already come with xcaddy? I think that would save a line here.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just because we don't use xcaddy for the official builds: https://github.com/dunglas/frankenphp/blob/main/caddy/frankenphp/main.go

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess that's only because of maxprocs? I figure a super simple plugin that just has an init() which does that would make sense.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's temporarily for maxprocs, but also because I had a lot of issues with xcaddy in the past and followed the advice of using custom main.go file 😄

@dunglas dunglas merged commit 9d56f25 into main Nov 7, 2023
26 of 27 checks passed
@dunglas dunglas deleted the docs/xcaddy branch November 7, 2023 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: an easy way to add caddy module
2 participants