filebrowser/caddy/filemanager/README_NEW.md
Henrique Dias 63eeadd35d FileManager
Former-commit-id: 780a1395987d55b7b3a8e16887b1565c7823f908 [formerly 68a764f60734158904a12ca8894d2e304d97cc45] [formerly dcc09fb513bea1790efecfb78862ebca1c690f1a [formerly 6aaa99d37787bb99b78bee485918b0035f5d9c3b]]
Former-commit-id: 88c025593528765843af499389da2236f70ae9fd [formerly 14902b1a3447014c648771ccd1a94f1dba97ca61]
Former-commit-id: ed209b9ef6781a8008e907bab6b4262cf7b828c1
2017-07-08 15:25:33 +01:00

2.0 KiB

filemanager - a caddy plugin

filemanager provides WebDAV features and a file managing interface within the specified directory and it can be used to upload, delete, preview, rename and edit your files within that directory. It is an implementation of hacdias/filemanager library.

Note that if you are handling large files you might run into troubles due to the defaults of timeouts plugin. Check its documentation to learn more about that plugin.

For information about the working of filemanager itself, go to the main repository.

Get Started

To start using this plugin you just need to go to the download Caddy page and choose filemanager in the directives section. For further information on how Caddy works refer to its documentation.

Syntax

filemanager [baseurl] [scope] {
    database  path
}

All of the options above are optional.

  • baseurl is the URL where you will access the File Manager interface. Defaults to /.
  • scope is the path, relative or absolute, to the directory you want to browse in. Defaults to ./.
  • path is the database path where File Manager will store the settings that aren't included in the Caddyfile. By default, the database will be stored on .caddy folder and its name will be an hashed combination of the host and the baseurl. It is highly recommended to set this option. Otherwise, whenever you change the host or the baseurl, your settings will be lost or you will need to point to the previous database.

Examples

Show the directory where Caddy is being executed at the root of the domain:

filemanager

Show the content of foo at the root of the domain:

filemanager / ./foo

Show the directory where Caddy is being executed at /filemanager:

filemanager /filemanager

Show the content of foo at /bar:

filemanager /bar /show
}