mikedeboer / jsDAV

jsDAV allows you to easily add WebDAV support to a NodeJS application. jsDAV is meant to cover the entire standard, and attempts to allow integration using an easy to understand API.
http://www.mikedeboer.nl
MIT License
681 stars 159 forks source link

Question: How to run server using HTTPS? #142

Open mpodriezov opened 8 years ago

mpodriezov commented 8 years ago

Hi, Is there a way to start webdav server via secure connection?

edrex commented 8 years ago

I am looking to do something similar, although more complicated: run jsDAV using an http2 server.

Searching shows only one place outside the tests where http is required, in server.js. Around line 145, it looks like it will use options.server if it is passed in, so that is probably how you can use HTTPS.

HTTPS (with auto-provision from Let's Encrypt) is on the roadmap for my application too, so I'll be curious to hear what you end up doing.