Installation
Install with pip
pip install git+https://github.com/mar10/wsgidav.git
sudo apt-get install python-lxml
run
wsgidav --host=0.0.0.0 --port=80 --root=/tmp --auth=anonymous
Configuration for HTTPS
wsgidav --host=0.0.0.0 --port=443 --root=/tmp --auth=anonymous --config=web.yaml
web.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 | # ----------------------------------------------------------------------------
# SSL Support
#: The certificate should match the servers hostname, so the bogus certs will
#: not work in all scenarios.
#: (Paths can be absolute or relative to this config file.)
ssl_certificate: "/etc/ssl/private/server.crt"
ssl_private_key: "/etc/ssl/private/server.key"
# ssl_certificate_chain: null
#:: Example with pem files :: #
#ssl_certificate: "/etc/letsencrypt/live/carrot.ignorelist.com/cert.pem"
#ssl_certificate_chain: "/etc/letsencrypt/live/carrot.ignorelist.com/fullchain.pem"
#ssl_private_key: "/etc/letsencrypt/live/carrot.ignorelist.com/privkey.pem"
#: Cheroot server supports 'builtin' and 'pyopenssl' (default: 'builtin')
# ssl_adapter: 'pyopenssl'
|
How to Build your own Certificates
Last update:
Nov 20, 2024