CardJizzerApp/CardJizzerBackend

Re-implement ssl

IJustDev opened this issue · 2 comments

The current server (http-package) does not support SSL encryption. We should introduce the https package.

Files to change: app.js

Can you give a few more details about what you're trying to accomplish?

Sure. I want the server to offer an option for SSL support. We should also add an environment variable for the folder containing the priv.key and the fullchain.pem. Those two values are needed for the https package.

I think it would be useful if we add another env variable representing whether SSL is enabled or not. (I suggest calling it SSL_ENABLED)