Skip to content

Conversation

@vgobbo
Copy link
Contributor

@vgobbo vgobbo commented Aug 12, 2023

As a user, I expect that if web.https.enabled = true and web.https.mkcert = false or unspecified, web.https.cert_path and web.https.key_path must be present.

This is just a usability improvement since I stumbled on this. At first, I thought HTTPS support was only partially implemented since I couldn't find docs for it. But then I decided to read the code and I noticed that web.https.mkcert = false must be explicitly set otherwise the certificate and key in the configuration file would be ignored.

This PR simply breaks down the function into two: one to handle certificates when mkcert = true; the other to handle certificates when mkcert = false or unspecified.

@ealmloff ealmloff merged commit fa39408 into DioxusLabs:master Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants