pouchdb-server icon indicating copy to clipboard operation
pouchdb-server copied to clipboard

HTTPS / SSL support in built-in httpd?

Open Offbeatmammal opened this issue 4 years ago • 2 comments

I saw back in 2018 in #169 that there were (at that point) no plans to enable native SSL support in pouchdb-server, but that was before the move by most browsers to actively block insecure requests from secure pages which makes something like

var remoteDB = new PouchDB('https://my.server.com:6984/database')
localDB.sync(remoteDB, {
....

a little harder without extra steps.

As httpd supports SSL and it appears pouchdb is sitting on top of that, is it possible to add support for the [SSL] configuration (or is there a trivial solution for doing this on a Windows/IIS combination that I'm missing which negates the need for this)?

Offbeatmammal avatar Nov 22 '20 23:11 Offbeatmammal

FWIW, found a way to address this using IIS - https://medium.com/@gusterwoei/how-to-configure-reverse-proxy-on-windows-iis-52a48b90163a

Offbeatmammal avatar Nov 23 '20 07:11 Offbeatmammal

You should use a reverse proxy for this? Let pouchdb-server run on http and only accept connections on 127.0.0.1 / localhost.

eklem avatar Sep 17 '23 06:09 eklem