WebDAV server based on Flask.
flaskdav supports HTTPS when running with options
--cert path/to/certificate and
To generate a private key and associated SSL certificate:
openssl req -nodes -newkey rsa -days 365 -keyout "ssl.key" -x509 -out "ssl.cert"
The HMAC key is reset each time you restart the server.
python flaskdav.py --cert ssl.cert --key ssl.key --path /
tells the server to use the generated SSL key and certificate, and to give access to the full system.
On NayuOS, do:
to run flaskdav on / or give an absolute path as argument:
bash runflaskdav /media/removable
flaskdav is under the GPL2 license.
utils.py is a modified version of PyWebDAV's files that are under GPL2 License original files:
- support LOCK/UNLOCK
- support PROPPATCH
- continue cleaning PROPFIND code
- remove Resource class
- read large data received via PUT/PROPFIND methods by chunks