coolify icon indicating copy to clipboard operation
coolify copied to clipboard

[Bug]: Redirect to www. not issuing SSL cert for non-www. with Caddy

Open nahtnam opened this issue 1 year ago • 2 comments

Error Message and Logs

image

With the following setup, I get a SSL error when going to https://domain.com

If I change it to: image

It works with no problem. This is with Caddy

In my opinion, if redirect to www. is selecting, the certificate for the non-www. should automatically be generated

Steps to Reproduce

See above

Example Repository URL

No response

Coolify Version

v4.0.0-beta.359

Are you using Coolify Cloud?

No (self-hosted)

Operating System and Version (self-hosted)

No response

Additional Information

No response

nahtnam avatar Oct 12 '24 08:10 nahtnam

if domain.com isnt on there then it matches against your 404 redirect, which if its not https will give cert error

it needs a match against your container inorder to do the redirect

djsisson avatar Oct 12 '24 12:10 djsisson

Yeah that part makes sense. Personally I feel like setting the “redirect to www.” option should implicitly add the ssl configuration give that it’s already adding the redirect configuration

nahtnam avatar Oct 12 '24 12:10 nahtnam