-
-
Notifications
You must be signed in to change notification settings - Fork 845
chore: Prevent "certbot is not available" warning by Caddy #796
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can even remove the comment IMHO
74180fe
to
11e6cf3
Compare
Thanks!! |
That's not quite true. Caddy needs to have its own cert in the trust store if you're doing something like having Caddy connect to itself (e.g. |
Thanks for pointing this out, @francislavoie! I've made this statement more specific in the PR description. For context, I'll attach a link to the HTTPS testing proposed in this template below. It uses the symfony-docker/.github/workflows/ci.yml Lines 44 to 47 in 46e07df
|
|
@francislavoie , I agree with you. IMO the Also this repository already has a document describing several ways to fix the HTTPS issue (see TLS Certificates). A method similar to the one proposed in the Caddy documentation is suggested first. AFAIU this template does not plan to install the With the global The Caddyfile of this template is intended to be used only inside containers and only in the environment generated by this template. In my opinion (and a couple of tests), the presence of the global |
I would recommend not using |
@francislavoie, I think this is a good idea. Created a PR to implement this change: #799 |
By default, Caddy expects to run in the operating system, not in a container. Because of this, Caddy's default behavior is to install its certificate as trusted (see https://caddyserver.com/docs/automatic-https#ca-root).
This makes no sense in a container.This template's containers don't require this. However, Caddy will notify you if it fails to install the certificate as trusted with the following warning:Since v2.4.2, Caddy has a global option
skip_install_trust
that disables Caddy's attempts to install its certificate as trusted. Having this global option disables this warning and may slightly improve container startup speed.Fixes #764