filebrowser/README.md

36 lines
1.6 KiB
Markdown
Raw Normal View History

2016-06-10 13:36:43 +00:00
# filemanager - a caddy plugin
2016-06-23 07:26:44 +00:00
[![Build](https://img.shields.io/travis/hacdias/caddy-filemanager.svg?style=flat-square)](https://travis-ci.org/hacdias/caddy-filemanager)
2016-06-10 13:36:43 +00:00
[![community](https://img.shields.io/badge/community-forum-ff69b4.svg?style=flat-square)](https://forum.caddyserver.com)
[![Documentation](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square)](http://godoc.org/github.com/hacdias/caddy-filemanager)
2016-10-31 21:25:40 +00:00
[![Go Report Card](https://goreportcard.com/badge/github.com/hacdias/caddy-filemanager?style=flat-square)](https://goreportcard.com/report/hacdias/caddy-filemanager)
2016-06-10 19:54:19 +00:00
This package is a plugin for Caddy server that provides an online file manager (based on browse middleware) that is able to: rename files, delete files and upload files. Some new features that can be implemented in the future can be seen at [issues](https://github.com/hacdias/caddy-filemanager/issues).
2016-06-10 19:54:19 +00:00
2016-08-22 11:24:26 +00:00
### Syntax
2016-06-10 19:54:19 +00:00
```
2016-08-22 11:24:26 +00:00
filemanager url {
show path
2016-10-17 21:07:19 +00:00
webdav [path]
2016-08-22 11:24:26 +00:00
styles filepath
frontmatter type
allow_new [true|false]
allow_edit [true|false]
allow_commands [true|false]
allow_command command
block_command command
before_save command
after_save command
2016-08-22 11:24:26 +00:00
allow [path|dotfiles]
allow_r path regex
block [path|dotfiles]
block_r path regex
2016-06-10 19:54:19 +00:00
}
```
2016-08-10 09:05:09 +00:00
2016-08-22 11:24:26 +00:00
2016-08-10 09:05:09 +00:00
## NOTE FOR DEVELOPERS
You need to run `go generate` on `$GOPATH/src/github.com/hacdias/caddy-filemanager` before building any binary. Otherwise, you will receive an `undefined: Asset` error.