Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 8.2% on proxy.golang.org

proxy.golang.org : github.com/hacdias/caddy-cms

Package filebrowser provides a web interface to access your files wherever you are. To use this package as a middleware for your app, you'll need to import both File Browser and File Browser HTTP packages. Then, you should create a new FileBrowser object with your options. In this case, I'm using BoltDB (via Storm package) as a Store. So, you'll also need to import "github.com/filebrowser/filebrowser/bolt". The credentials for the first user are always 'admin' for both the user and the password, and they can be changed later through the settings. The first user is always an Admin and has all of the permissions set to 'true'. Then, you should set the Prefix URL and the Base URL, using the following functions: The Prefix URL is a part of the path that is already stripped from the r.URL.Path variable before the request arrives to File Browser's handler. This is a function that will rarely be used. You can see one example on Caddy filemanager plugin. The Base URL is the URL path where you want File Browser to be available in. If you want to be available at the root path, you should call: But if you want to access it at '/admin', you would call: Now, that you already have a File Browser instance created, you just need to add it to your handlers using m.ServeHTTP which is compatible to http.Handler. We also have a m.ServeWithErrorsHTTP that returns the status code and an error. One simple implementation for this, at port 80, in the root of the domain, would be:

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/hacdias/caddy-cms
Keywords: administrator, extension, filemanager, gui, interface, plugin, vuejs, web
License: Apache-2.0
Latest release: over 5 years ago
First release: almost 7 years ago
Namespace: github.com/hacdias
Stars: 19,003 on GitHub
Forks: 2,298 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 18 days ago

    Loading...
    Readme
    Loading...