Coder Social home page Coder Social logo

filebrowser / filebrowser Goto Github PK

View Code? Open in Web Editor NEW
23.6K 306.0 2.7K 19.67 MB

馃搨 Web File Browser

Home Page: https://filebrowser.org

License: Apache License 2.0

Go 40.40% Shell 0.14% Dockerfile 0.08% JavaScript 0.18% HTML 1.81% Vue 34.02% CSS 8.82% Makefile 0.70% TypeScript 13.83%
filemanager plugin interface web extension administrator gui vuejs

filebrowser's Introduction

Preview

Build Go Report Card Documentation Version Chat IRC

filebrowser provides a file managing interface within a specified directory and it can be used to upload, delete, preview, rename and edit your files. It allows the creation of multiple users and each user can have its own directory. It can be used as a standalone app.

Demo

url: https://demo.filebrowser.org/

credentials: demo/demo

Features

Please refer to our docs at https://filebrowser.org/features

Install

For installation instructions please refer to our docs at https://filebrowser.org/installation.

Configuration

Authentication Method - You can change the way the user authenticates with the filebrowser server

Command Runner - The command runner is a feature that enables you to execute any shell command you want before or after a certain event.

Custom Branding - You can customize your File Browser installation by change its name to any other you want, by adding a global custom style sheet and by using your own logotype if you want.

Contributing

If you're interested in contributing to this project, our docs are best places to start https://filebrowser.org/contributing.

filebrowser's People

Contributors

adrium avatar andrew-kennedy avatar arthurmousatov avatar bitti09 avatar danielvladu avatar dependabot-preview[bot] avatar dependabot-support avatar dependabot[bot] avatar deyv avatar equim-chan avatar freedomlang avatar hacdias avatar helloray avatar hugomassing avatar kloon15 avatar maeryo avatar nerahikada avatar niubility000 avatar o1egl avatar princemaple avatar ramiresviana avatar robteix avatar shlomocode avatar sinni800 avatar thewh1teagle avatar ttys3 avatar unicod3 avatar vleff avatar waseigo avatar weidideng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

filebrowser's Issues

Documentation

caddy-hugo needs a bit more Caddyfile documentation I'm proffering this as an example of a Caddy file that uses caddy-hugo and caddy's proxy features. I don't serve anything straight through right now, but have added a fourth item to the list, :

#1)Forum being proxied to four URLs
#2) Chat site being proxied to one URL
#3) Business homepage being served by Caddy after being assembled by Hugo via Caddy-Hugo
#4) A fake bunch of stuff I'm just plain serving.
#
#
sharebitstalk.io www.sharebitstalk.io technologistguild.com www.technologistguild.com {
gzip                                                            # tells caddy to compress traffic
proxy /         192.168.191.206:80                              # a) proxy tells caddy that it'll be proxying  b) / tells caddy that it should proxy to the folder / c) 192.168.191.206:80 Tells Caddy what URL to proxy at /
tls             [email protected]                           # Tells let's encrypt your e-mail address
}

chat.sharebitstalk.io {
gzip
proxy /         192.168.191.206:8065
tls             [email protected]
}

klouds.org www.klouds.org {
gzip
tls             [email protected]
root            /root/hugo-semantic-homepage-starter/dist       # Tells CADDY which folder to serve as the root
basicauth       /admin username password                         # protect the admin area using HTTP basic auth
hugo            /root/hugo-semantic-homepage-starter            # Tells HUGO which folder to execute in
}

jimbosfakesite.org www.jimbosfakesite.org {
gzip
tls              [email protected]
}

panic: runtime error: index out of range

This crash mean much to you?

goroutine 1 [running]:
flag.init()
/usr/local/go/src/flag/flag.go:840 +0x11a
github.com/spf13/pflag.init()
/home/caddy/go/src/github.com/spf13/pflag/uint8.go:91 +0x59
github.com/spf13/viper.init()
/home/caddy/go/src/github.com/spf13/viper/viper.go:1026 +0x42
github.com/spf13/hugo/create.init()
/home/caddy/go/src/github.com/spf13/hugo/create/content.go:165 +0x42
github.com/spf13/hugo/commands.init()
/home/caddy/go/src/github.com/spf13/hugo/commands/version.go:76 +0x5e
github.com/hacdias/caddy-hugo/utils.init()
/home/caddy/go/src/github.com/hacdias/caddy-hugo/utils/utils.go:208 +0x42
github.com/hacdias/caddy-hugo.init()
/home/caddy/go/src/github.com/hacdias/caddy-hugo/hugo.go:135 +0x4c
github.com/mholt/caddy/config.init()
/tmp/custombuild_5197_315274122/src/github.com/mholt/caddy/config/directives.go:52 +0x4f
main.init()
/tmp/custombuild_5197_315274122/src/github.com/mholt/caddy/main.go:174 +0x47

full log:
http://termbin.com/gpms

Go to http://jungleboogie.me:2021/ and see the error. If you refresh, you'll notice that everything below main.init() changes between refreshes.

also see gohugoio/hugo#1649

Git sync

Git sync as suggested by @captncraig.

If the folder where the site is located, there should be a Git button placed in browse screens. With that button, you can:

  • Stash
  • Push (Add -A + Commit) with message
  • Pull

First Stable Version Objectives

  • Simple interface;
  • File editing;
  • File browsing, uploading and deleting;

The admin interface will be available at /admin and protected by a simple HTTP authentication. That configuration should be set on Caddyfile.

  • /admin
  • /admin/content - manage the content of content folder
  • /admin/browse - browse the files as file system, upload, delete, etc.
  • /admin/edit/{$file_path}
  • /admin/settings - editable Hugo configuration
  • /admin/static - static files like css, js, etc.

caddy API changed

caddy has changed a little and so caddy-hugo won't build properly.

in hugo.go change:
"github.com/mholt/caddy/config/setup"
to:
"github.com/mholt/caddy/caddy/setup"

Enable "new" button

Ask the name of the file and the type: it should be something available on archtypes or blank

"no buildable Go source files" when building caddy-hugo

Hello,

I'm trying to build a Docker container with Caddy and Caddy-hugo. I'm getting this error and I know no much about Go. Can you help?

no buildable Go source files in /home/go/src/github.com/hacdias/caddy-hugo/assets

Here is my Dockerfile, save it in a directory then run 'docker build .' to reproduce the problem.

FROM abiosoft/caddy

RUN apk add go mercurial && mkdir /home/go
ENV GOPATH /home/go
ENV PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/go/bin/
RUN /usr/bin/go get -u github.com/jteeuwen/go-bindata/...
RUN /usr/bin/go get github.com/caddyserver/caddydev
RUN /usr/bin/go get github.com/hacdias/caddy-hugo
RUN cd /home/go/src/github.com/hacdias/caddy-hugo && /usr/bin/go generate

Support more static website generators

Right now, cady-hugo is capable of editing, creating and uploading files to the file system, similar to a CMS. Those functionalities are transversal to all of the static website generators.

So, the idea is to change the name of the plugin and make it more global, like caddy-cms. It would have an option to use Hugo or use an external static website generator.

I think it would be simple to do because the only Hugo command used inside the plugin is to regenerate the website. As Hugo is builded with Go, it offers a better experience with Caddy in this case.

To support others static website generators, we would have these options:

cms {
     external true        # default false
     command jekyll       # the command with all of the needed flags
}```

"??" in markdown replaced with jQuery...

  1. New md post
  2. Input content with "??"
  3. Save. Open browser network debuger. In form data you will see this: {"content":"\r\n"}:
  4. Again click save
{"content":"jQuery2140322192081483081_1443556381439\r\n"}:

Automatically set the baseURL for Hugo

Hello,

I'm running Caddy-hugo in a Docker container (https://github.com/ludovicc/caddy-hugo). My project contains custom css and javascript files, but those are not served as the url for them starts with http://localhost:1313 instead of http://localhost:2015.

I tried to change the configuration in the Caddyfile, but it doesn't change anything.

hugo /srv {
cmd "--buildDrafts --watch --baseURL=http://localhost:2015/ --bind 0.0.0.0 --port 2015"
}

You can try this by running the Docker container on the Balsamiq site, a Hugo project (https://github.com/balsamiq/docs.balsamiq.com)

Watching changes

When editing content on the shell or with sublime text 3 the changes are not recognized and not renderd. would be nice to be able to get the caddy-hugo watching the content folder

new file | auto date and title

when creating a new md file at the backend using post.md:archetype there are no auto created date field and title field created from filename is missing

Can't edit config file

Building from source.

Whenever I try to edit the config.toml file I get a 500 error.

I enabled the error log and found a bunch of these lines:

13/Dec/2015:16:26:24 +1100 [PANIC /admin/edit/config.toml] C:/dev/go/src/github.com/hacdias/caddy-hugo/frontmatter/frontmatter.go:46 - interface conversion: interface is []map[string]interface {}, not []interface {}

Changing that line to the suggested types fixed the issue, but I'm not sure if this may cause other errors.

Support Hugo only?

There's something else here that can be a problem: right now, the plugin can be used with more static website generators, but if it was directed only to Hugo it could be more optimized and have better functionalities both in the editor (because we know the default front matter fields) and in the back end because we know the default website structure. It's easier. It can be optimized, it can be easily better.

I know I thought before it was better to support many website generators, but there's nothing good which bring bad things too. Almost nothing. We have to see the pros and cons. Do you prefer having the plugin optimized for Hugo with better specific functionalities or do you prefer it to be general and support multiple static generators?

What do you think in restricting this editor to Hugo?

Add screenshots / functionality to readme

Right now it's a really heavy investment to see what caddy-hugo does and what it looks like. A front end is sorely needed for Hugo and I'd love to see what's happening, but it's hard to invest the 30-120 minutes that it's likely going to take for someone not familiar with the process. For someone investigating Hugo, this means installing and learning Hugo, installing and learning Caddy then figuring out this plugin.

Just a few screenshots + a list of functionality would go a long way towards getting people to take the time to install it, myself included.

I'm super excited about this project and hope to see it continue to grow!

always 404 Not Found

Hey,

i've try to get caddy-hugo to run, but i always get an 404 Not Found. I could open the admin panel, but i get no content from the site itself.

I've use the 2minutes hugo-site

My Caddyfile is simple:

localhost:2020
gzip
log ./access.log
errors ./errors.log

root ./

hugo {

}

Caddy version is 0.8.1

what is my issues?

Greetings
Tonka

Caddy throws when using hugo

Using 0.8.

With this config:

http://localhost:8888 {
  root public
  hugo {
    args "--theme=hyde"
  }
}

I get this error:

Activating privacy features... done.
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x2dfe21]

goroutine 1 [running]:
github.com/hacdias/caddy-hugo/utils.Run(0x208e8d2c0)
    /home/caddy/go/src/github.com/hacdias/caddy-hugo/utils/utils.go:178 +0x2b1
github.com/hacdias/caddy-hugo.Setup(0x208eea100, 0x0, 0x0, 0x0)
    /home/caddy/go/src/github.com/hacdias/caddy-hugo/hugo.go:26 +0x7d
github.com/mholt/caddy/caddy.loadConfigs(0x89c510, 0x9, 0x2208e4a2a0, 0x208f79050, 0x0, 0x0, 0x0, 0x0, 0x0)
    /tmp/custombuild_6545_142287504/src/github.com/mholt/caddy/caddy/config.go:162 +0x1a8a
github.com/mholt/caddy/caddy.Start(0x2208e4bd50, 0x208f79020, 0x0, 0x0)
    /tmp/custombuild_6545_142287504/src/github.com/mholt/caddy/caddy/caddy.go:138 +0x2c3
main.main()
    /tmp/custombuild_6545_142287504/src/github.com/mholt/caddy/main.go:99 +0x5fe

goroutine 5 [syscall]:
os/signal.loop()
    /usr/local/go/src/os/signal/signal_unix.go:21 +0x1f
created by os/signal.init路1
    /usr/local/go/src/os/signal/signal_unix.go:27 +0x35

goroutine 9 [chan receive]:
github.com/mholt/caddy/caddy.func路012()
    /tmp/custombuild_6545_142287504/src/github.com/mholt/caddy/caddy/sigtrap_posix.go:19 +0x2d9
created by github.com/mholt/caddy/caddy.trapSignalsPosix
    /tmp/custombuild_6545_142287504/src/github.com/mholt/caddy/caddy/sigtrap_posix.go:72 +0x25

goroutine 8 [chan receive]:
github.com/mholt/caddy/caddy.func路010()
    /tmp/custombuild_6545_142287504/src/github.com/mholt/caddy/caddy/sigtrap.go:31 +0x110
created by github.com/mholt/caddy/caddy.trapSignalsCrossPlatform
    /tmp/custombuild_6545_142287504/src/github.com/mholt/caddy/caddy/sigtrap.go:41 +0x25

goroutine 10 [select]:
github.com/mholt/caddy/caddy/letsencrypt.maintainAssets(0x208ee71e0, 0x1, 0x1, 0x0)
    /tmp/custombuild_6545_142287504/src/github.com/mholt/caddy/caddy/letsencrypt/maintain.go:34 +0x7cd
created by github.com/mholt/caddy/caddy/letsencrypt.Activate
    /tmp/custombuild_6545_142287504/src/github.com/mholt/caddy/caddy/letsencrypt/letsencrypt.go:146 +0x113a

Same thing happens with no args.

Settings button

The settings button is optimized for Hugo usage. So, if we're not using Hugo, the configuration file may have another name. Should it be set in caddyfile?

Can't edit config file

I am having the same issue as #35 except that my config file is in YAML not TOML. The error is:

07/Jan/2016:12:36:21 -0700 [PANIC /admin/edit/config.yaml] go/src/github.com/hacdias/caddy-hugo/frontmatter/frontmatter.go:56 - interface conversion: interface is map[interface {}]interface {}, not map[string]interface {}

This is the sanitized version of my config file:

---
baseurl: http://www.domain.com"
languageCode: en-us
title: Site Title
disqusShortname: "user"
paginate: 10 # optional
editor: "atom"
paginatePath: "page"
preservetaxonomynames: true
MetaDataFormat: yaml

params:
  twitter: "user"
  instagram: "user"
  facebook: "user"
  gplus: ""
  linkedin: ""
  pinterest: "user"
  googleAnalyticsUserID: ""
  rss_link: "https://www.domain.com/index.xml"
  avatar_link: "http://placehold.it/140x140"
  copyright: "Content Copyright"
  sb_widget_about: true
  sb_widget_search: false
  sb_widget_topics: true
  sb_widget_tags: true
  sb_widget_twitter: false
  sb_widget_recient_comments: false
  f_widgets: false
  f_widget_archives: true
  f_widget_meta: true
  f_widget_twitter: true
  f_widget_subscribe: true

permalinks:
  post: "/:year/:month/:slug/" # optional
  page: "/:title/"

taxonomies:
    tag: "tags"
    topic: "topics"

This config works fine with hugo and I don't have trouble parsing the fontmatter for the content (also in YAML) so I am not sure whats up. The things under params: are mostly just re-usable items, the sb_ and f_ turn on and off widgets on the site.

root directive doesn't used

Hi! It's again me ;)

I have this config /home/toor/www/Caddyfile ( pwd used here to show problem, original config have command hugo):

localhost {
  root ./blog
  cms {
    content public
    command pwd
  }
}

I've expected to see /home/toor/www/blog/, but

$ caddy -conf=Caddyfile 
/home/toor/www
localhost:2015

But running caddy from blog directory let it works like a charm...

I think you need to set current working dir before Run: https://golang.org/pkg/os/exec/#Command

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    馃枛 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 馃搳馃搱馃帀

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google 鉂わ笍 Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.