Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ViRb3/webdav-server
A simple WebDAV server in Go
https://github.com/ViRb3/webdav-server
server webdav
Last synced: 2 months ago
JSON representation
A simple WebDAV server in Go
- Host: GitHub
- URL: https://github.com/ViRb3/webdav-server
- Owner: ViRb3
- Archived: true
- Created: 2019-08-24T23:07:25.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-07-23T22:46:45.000Z (6 months ago)
- Last Synced: 2024-10-27T13:06:47.831Z (3 months ago)
- Topics: server, webdav
- Language: Go
- Homepage:
- Size: 158 KB
- Stars: 31
- Watchers: 4
- Forks: 13
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-rainmana - ViRb3/webdav-server - A simple WebDAV server in Go (Go)
README
# WebDAV Server
A simple WebDAV server in Go## Usage
Run with argument `-h` or `--help`:
```
-dir string
Directory to serve from. Default: CWD
-port int
Port to serve on. Default: 80 (default 80)
-prefix string
URL to strip from resource paths. None by default
-url string
Root url to handle. Default: / (default "/")
```## Optimization
If you are running `nginx` or any other reverse proxy in front, you may want to let it handle `GET` requests instead of this server to save resources.### Example nginx configuration
```nginx
# must be same as webdav server root
root /mnt;
# don't limit big uploads
client_max_body_size 0;location / {
if ($request_method != GET) {
# pass webdav handling
proxy_pass http://webdav:8080;
}
# handle GET requests directly
}
```