https://github.com/weaming/webdav-server
https://github.com/weaming/webdav-server
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/weaming/webdav-server
- Owner: weaming
- Created: 2019-11-28T06:35:38.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-28T06:56:54.000Z (over 6 years ago)
- Last Synced: 2023-03-08T19:13:14.794Z (over 3 years ago)
- Language: Go
- Size: 3.42 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WebDAV
Setup your WebDAV server quickly.
## Environments as cli options
```
dir := getEnv("ROOT", ".") // root of webdav
httpPort := getEnv("HTTP_ADDR", ":80")
httpsPort := getEnv("HTTPS_ADDR", ":443")
serveSecure := getEnv("HTTPS_ENABLE", "") != "" // enable https
certKey := getEnv("CERT_KEY", "cert.pem")
pubKey := getEnv("PUB_KEY", "key.pem")
authUsers := getEnv("AUTH_PATH", "auth.json") // HTTP basic auth table in name-password format
```