D
Dokployโ€ข10mo ago
youzai

domain

My domain name is registered on namecheap and then managed by cloudflare. When I follow the documentation, domain is set to Full (Strict) mode in Cloudflare. In Dokploy, select Let's Encrypt and enable HTTPS. It doesn't work and returns Invalid SSL certificate, but when I change the domain to Full, the website comes back to work.
No description
No description
No description
No description
17 Replies
youzai
youzaiOPโ€ข10mo ago
I donโ€™t know if setting it to Full will have any other effects, because this setting is different from the documentation. Could you please explain it?
๐— ๐—ฟ๐Ÿญ๐—•๐—น๐—ฎ๐˜‡๐—ฒ
Full or full strict is same donโ€™t worry about it
Siumauricio
Siumauricioโ€ข10mo ago
Why don't use the certificates from cloudflare?
youzai
youzaiOPโ€ข10mo ago
Are you creating one here? I donโ€™t know much about cloudflare
No description
Siumauricio
Siumauricioโ€ข10mo ago
No, go to Overview and select Flexible
youzai
youzaiOPโ€ข10mo ago
I have selected Flexible, does dokploy need to be modified?
No description
youzai
youzaiOPโ€ข10mo ago
The website cannot be opened after selecting Flexible.
Siumauricio
Siumauricioโ€ข10mo ago
yeah, in the certificate select none and disable https
youzai
youzaiOPโ€ข10mo ago
I still canโ€™t open the website. I didnโ€™t find your method of operation in the documentation. Can you provide specific reference documentation?
Siumauricio
Siumauricioโ€ข10mo ago
did you have enabled Flexible Mode in cloudflare and in the domain did you select the certificate None and disable HTTPS?
youzai
youzaiOPโ€ข10mo ago
Yes, I have configured it as you said
No description
No description
Siumauricio
Siumauricioโ€ข10mo ago
Ok can you share the logs of your application?
youzai
youzaiOPโ€ข10mo ago
I solved it. I did not open port 80 of the server. I only opened port 443 before. What are the benefits of configuring this way compared to the full way I used above?
Siumauricio
Siumauricioโ€ข10mo ago
Well, Flexible: it will only encrypt the data from the browser and the client but not on your server Full(Strict): Require to be on full encryption mode end to end, Origin and Server Is more easy to use flexible because you don't need to do anything, but in the case you want more security use Full(Strict)
youzai
youzaiOPโ€ข10mo ago
I understand that using Flexible allows me to avoid maintaining certificate expiration issues.
Siumauricio
Siumauricioโ€ข10mo ago
Correct, but using letsencrypt is done automatically also, so you are safe in both sides but with flexible you have less headache because you never to be worried about if the letsencrypt didn't generate your certificate at the time or something
youzai
youzaiOPโ€ข10mo ago
Thank you for your patient answer, I understand. ๐Ÿ’ฏ

Did you find this page helpful?