GithubHelp home page GithubHelp logo

filebrowser / caddy Goto Github PK

View Code? Open in Web Editor NEW
25.0 8.0 11.0 18.72 MB

:floppy_disk: File Browser Caddy plugins.

Home Page: https://caddyserver.com/docs/http.filebrowser

License: Apache License 2.0

Go 100.00% Shell 0.01%
filebrowser plugins caddy

caddy's Introduction

File Browser Caddy Plugin

File Browser was initially born as a Caddy plugin. And despite its growth, we still support and ❤️ Caddy.

caddy's People

Contributors

hacdias 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

caddy's Issues

panic: could not locate box "./frontend/dist"

When I try to build from source for caddy I get the following error.

panic: could not locate box "./frontend/dist"

Stack trace is:
github.com/GeertJohan/go%2erice.MustFindBox(0xb38c2e, 0xf, 0x86fc74)
        /home/hud/programs/gowork/src/github.com/GeertJohan/go.rice/box.go:110 +
0x7c
github.com/filebrowser/filebrowser.(*FileBrowser).Setup(0x11d995e0, 0x11d1fe00, 
0x12100a40)
        /home/hud/programs/gowork/src/github.com/filebrowser/filebrowser/filebrowser.go:132 +0x24
github.com/filebrowser/caddy/parser.Parse(0x11eaa410, 0xb012df, 0x4, 0x11d44520,
 0xb012df, 0x4, 0x11e76f8c, 0x1)
        /home/hud/programs/gowork/src/github.com/filebrowser/caddy/parser/parser
.go:263 +0x2fec
github.com/filebrowser/caddy/hugo.setup(0x11eaa410, 0x4, 0xb012df)
        /home/hud/programs/gowork/src/github.com/filebrowser/caddy/hugo/hugo.go:
42 +0x2c
github.com/mholt/caddy.executeDirectives(0x11db6380, 0xb14b59, 0x9, 0x191b3c0, 0
x42, 0x42, 0x1211be20, 0x1, 0x1, 0x0, ...)
        /home/hud/programs/gowork/src/github.com/mholt/caddy/caddy.go:666 +0x290
github.com/mholt/caddy.ValidateAndExecuteDirectives(0x1430d98, 0x11d1efc0, 0x11d
b6380, 0x11db6300, 0x1, 0x11d225c0)
        /home/hud/programs/gowork/src/github.com/mholt/caddy/caddy.go:622 +0x34c
github.com/mholt/caddy.startWithListenerFds(0x1430d98, 0x11d1efc0, 0x11db6380, 0
x0, 0x0, 0x0)
        /home/hud/programs/gowork/src/github.com/mholt/caddy/caddy.go:523 +0xe8
github.com/mholt/caddy.Start(0x1430d98, 0x11d1efc0, 0x1430d98, 0x11d1efc0, 0x0)
        /home/hud/programs/gowork/src/github.com/mholt/caddy/caddy.go:484 +0xc0
github.com/mholt/caddy/caddy/caddymain.Run()
        /home/hud/programs/gowork/src/github.com/mholt/caddy/caddy/caddymain/run
.go:162 +0x3e0
main.main()
        src/github.com/mholt/caddy/caddy/main.go:27 +0x20

Any ideas would be greatly appreciated. Thanks.

how to change username and password?

How to change usrname and password? Digging your doc and not found.

here my Caddyfile:

domain.com:10022 {
  log stderr
  gzip
  tls off

  filebrowser / /home/user/caddy-filebrowser {
    database            /home/user/caddy-filebrowser/filebrowser.db
  }

}

Thanks

baseurl not working

Are you asking for help with using Caddy or File Browser?
File Browser conf in Caddyfile

When did you download File Browser from caddyserver.com?
I build caddy from source code

What is your entire Caddyfile?

https://example.com{
    root /home
    filebrowser /fbs /home/Dwonloads  {
        database /home/filebrowser.db
    }
}

Description
I try to get https://example.com/fbs

Expected behaviour
enter filebrowser

What is happening instead?
get 404 not found

Additional context
only i use the default / it work

How to reproduce?
Tell us how to reproduce this issue. How can someone who is starting from scratch reproduce this behaviour as minimally as possible?

Files

[29/Mar/2019:22:27:22 +0800] "GET /fbs HTTP/2.0" 301 0
[29/Mar/2019:22:27:23 +0800] "GET / HTTP/2.0" 404 14

a search issue

If the search result path contains uppercase letters, then filemanager will replace uppercase letters with lowercase letters, so it will not be possible to jump

Can't have aliases when using named database

Are you asking for help with using Caddy or File Browser?
No, I'd like to report a bug.

When did you download File Browser from caddyserver.com?
I just updated caddy today (including filebrowser)

What is your entire Caddyfile?

alias1.example.com,
alias2.example.com {
	import "_presets/log.conf" # Just log requests
	import "_presets/ssl.conf" # Just the mail adress for ssl
	
	filebrowser / {
		database config.db
	}
}

Description
When starting the server it fails. I removed the named database and saw that there was two distinct databases created (one for alias1 and one for alias2).
When setting a name, both alias tries to access the same database and caddy just exit.

Expected behaviour
Caddy would start and both alias would use the same database.

What is happening instead?
Please, give full error messages and/or log.

When launching without named database:

Feb 13 20:23:33 mail caddy[32589]: [WARNING] A database is going to be created for your File Browser
Feb 13 20:23:33 mail caddy[32589]: instance at the following configuration:
Feb 13 20:23:33 mail caddy[32589]: Host:                 alias1.example.com
Feb 13 20:23:33 mail caddy[32589]: Path:
Feb 13 20:23:33 mail caddy[32589]: BaseURL:        /
Feb 13 20:23:33 mail caddy[32589]: It is highly recommended that you set the 'database' option to "aa9a1a8d169202e31f325f84660b0250.db".
Feb 13 20:23:34 mail caddy[32589]: [WARNING] A database is going to be created for your File Browser
Feb 13 20:23:34 mail caddy[32589]: instance at the following configuration:
Feb 13 20:23:34 mail caddy[32589]: Host:                 alias2.example.com,
Feb 13 20:23:34 mail caddy[32589]: Path:
Feb 13 20:23:34 mail caddy[32589]: BaseURL:        /
Feb 13 20:23:34 mail caddy[32589]: It is highly recommended that you set the 'database' option to "00223f07278b59f858203234c86eb75a.db".

When using named database:

Feb 13 20:22:44 mail systemd[1]: Started Caddy HTTP/2 web server.
Feb 13 20:22:44 mail caddy[32354]: Activating privacy features... 2019/02/13 20:22:44 [INFO][FileStorage:/etc/ssl/caddy] Started certificate maintenance routine
Feb 13 20:22:45 mail caddy[32354]: done.
Feb 13 20:22:45 mail systemd[1]: caddy.service: Main process exited, code=exited, status=1/FAILURE
Feb 13 20:22:45 mail systemd[1]: caddy.service: Unit entered failed state.
Feb 13 20:22:45 mail systemd[1]: caddy.service: Failed with result 'exit-code'.

Additional context
Before updating caddy, I tried to upgrade existing database bug got a timeout (filebrowser/filebrowser#627)

but I finally manage to success by stopping caddy...

How to reproduce?
You should be able to reproduce the bug by using my caddyfile.

Files

N/A

Alternate base urls no longer working

When using an alternate baseurl (see example below), the filebrowser login page prompt no longer appears, with the loading animation just continuing forever. Looking at the page source, I can see that filebrowser is looking to load its javascript and css from the root base url "/static/...." instead of from the alternate base url "/admin/static/...".

Example caddyfile:

:80 {
    root /site
    filemanager  /admin  /files
}

Official Release

The content on master is already working, although you can't download it via Caddy's official website (caddyserver.com) until the next release of Caddy. Until then, the only way to use it with Caddy is through a proxy or by building Caddy yourself.

All I get is an endless loading screen - Caddy 0.11.5

When did you download File Browser from caddyserver.com?
2/12/19

What is your entire Caddyfile?

http://localhost:8001/upload {

  browse
  log stderr
  gzip

  timeouts 0

  filebrowser / ./ {
    database            filebrowser.db
  }

}

Description
Just trying to use filebrowser plugin with recent versions of Caddy. It broke with the new overhauled version of Filebrowser I think.

Expected behaviour
The Filebrowser UI should display...

What is happening instead?
Just get endless "loading dots" - tried refresh, different browser, clearing cache, incognito mode...
loading

How to reproduce?
Install Caddy with filebrowser plugin on macOS 10.14.3. Use Caddyfile above. Start Caddy.

how to set shell command

Are you asking for help with using Caddy or File Browser?
Please use our forum instead: https://forum.caddyserver.com.

When did you download File Browser from caddyserver.com?

What is your entire Caddyfile?

file.yunfeng.site {
      filebrowser
}

Description
how to use shell on filebrowser servered web
image

Expected behaviour
use shell on web

What is happening instead?
Please, give full error messages and/or log.

Additional context
Add any other context about the problem here. If applicable, add screenshots to help explain your problem.

How to reproduce?
Tell us how to reproduce this issue. How can someone who is starting from scratch reproduce this behaviour as minimally as possible?

Files
A list of relevant files for this issue. Large files can be uploaded one-by-one or in a tarball/zipfile.

Can't use host:port/path on Caddyfile

I use filebrowser as caddy's plugin http.filebrower. My caddyfile is:

my.url {
    filebrowser / /home {
        database /home/www/file/file.db
    }
}

Then I run caddy with no error. But when I enter the url, the index is blank, there is no login web. However, I can still enter https://my.url/files to see my file. Did I do something wrong?

When I enter https://my.url , chrome shows:

image

Get a timeout error while trying to run http.filebrowser with multiple address

Are you asking for help with using Caddy or File Browser?
I'm asking for help with http.filebrowser plugin of Caddy.

When did you download File Browser from caddyserver.com?
20190316

What is your entire Caddyfile?

http://a.example.com:8080, http://b.example.com:8080

filebrowser /fb {
        database filemanager.db
}

Description
While there are more than one address in the beginning of Caddyfile and there's a "filemanager", caddy could not start properly.

Expected behaviour
A running caddy server with filemanager.

What is happening instead?
While starting caddy server, there's an error:

Activating privacy features... done.
2019/03/16 12:00:00 timeout

Additional context
Caddy version: 0.11.5
http.filebrowser plugin version: v2.0.2

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.