prologue icon indicating copy to clipboard operation
prologue copied to clipboard

How to create https server?

Open toghrulgasimov opened this issue 3 years ago • 7 comments

Is it possible to create https server?

toghrulgasimov avatar Dec 15 '21 15:12 toghrulgasimov

Sorry, It doesn't support HTTPS server. I think you can use nginx reverse proxy enabling HTTPS.

ringabout avatar Jan 20 '22 04:01 ringabout

see also https://forum.nim-lang.org/t/8849

ringabout avatar Jan 28 '22 14:01 ringabout

Follwoing this. Is it on the list for TO-DO?

kiwids0220 avatar Apr 01 '22 04:04 kiwids0220

I'm working on a frontend framework based on Nim JS backend atm. I will think of implementing a HTTPs server later.

ringabout avatar Apr 01 '22 05:04 ringabout

Awesome stuff! Thanks for putting up this amazing framework haha.

kiwids0220 avatar Apr 01 '22 05:04 kiwids0220

Is the usecase that the server is capable of sending HTTPS requests to other servers? Or, in contrast to that, to be connected to via HTTPS from clients?

Mostly asking since I'm struggling a bit to envision a usecase for the latter scenario. Normally you'd put nginx or apache between your server and the internet which are capable of such things, thus the confusion on my end.

PhilippMDoerner avatar Jun 26 '22 21:06 PhilippMDoerner

In case there still is need for using prologue with https, I've written up a deployment guide that leads you through how you can deploy docker with an nginx reverse proxy where nginx handles HTTPS. https://planety.github.io/prologue/deployment/

Granted, that one assumes you'll deploy both together via the same docker container, but it can be easily enough adjusted to your own way that you want to deploy (e.g. nginx and prologue in separate containers or whatnot).

Since it's a good idea to use a reverse proxy anyway I think that's an alright state to be in regarding this issue ?

PhilippMDoerner avatar Jul 12 '22 17:07 PhilippMDoerner