MDeLuise / plant-it

🪴 Self-hosted, open source gardening companion app
https://plant-it.org
GNU General Public License v3.0
686 stars 25 forks source link

Introducing SSL support #116

Closed MDeLuise closed 9 months ago

MDeLuise commented 9 months ago

Hey Plant-it community!

What's new?

This PR introduces the possibility of using SSL for enhanced security. It adds the SSL_ENABLED and CERTIFICATE_PATH properties, allowing users to deploy services over either HTTP (as before) or HTTPS. Additionally, it provides support for both self-signed auto-generated certificates and user-provided certificates.

Why is it important?

Enabling SSL ensures that data transmitted between the server and clients is encrypted, enhancing security and protecting sensitive information.

How to Use?

To enable SSL, set the SSL_ENABLED property to true and specify the path to the SSL certificates using the CERTIFICATE_PATH property. If using a custom certificate, place the app.key and app.crt files inside the specified certificate path directory.

Notes

This PR also:

Cheers and happy planting! 🌿🌼