You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Have you downloaded File Manager from caddyserver.com? If yes, when have you done that? If no, and you are running a custom build, which is the revision of File Manager's repository?
No. I am using the 'vanilla' docker image: hacdias/filemanager.
3. What are you trying to do? and 4. What did you expect to see?
I am trying to set a single command line argument, but keep default values for every other parameter. I'd expect that changing a single argument won't affect any other.
5. What did you see instead (give full error messages and/or log)? and 6. How can someone who is starting from scratch reproduce this behaviour as minimally as possible?
For example, although the default port is 80, setting --no-auth produces an apparently random port number:
$ docker run --rm -itv $(pwd):/srv -p 80:80 hacdias/filemanager
Listening on [::]:80
^C
$ docker run --rm -itv $(pwd):/srv -p 80:80 hacdias/filemanager --no-auth
Listening on [::]:34665
^C
$ docker run --rm -itv $(pwd):/srv -p 80:80 hacdias/filemanager --no-auth
Listening on [::]:42178
hacdias
I have to check this to see what's going on. Not sure if it's caused by Viper or something I've done wrong but I don't remember having any issues with that.
The text was updated successfully, but these errors were encountered:
@hacdias, I found the bug. Not easy to spot, but straightforward to be fixed. There is absolutely nothing wrong with the golang codebase, and viper works just as expected. The point is that the name of the config file included in the Dockerfile does not match the default config name in setupViper:
Because the config in the Dockerfile is set with CMD, if docker run is executed with any argument after the image name, the CMD is overwritten. As a result, without a -c flag, filebrowser defaults to filebrowser.json, which does not exist inside the container.
This issue is split from #302.
1. Have you downloaded File Manager from caddyserver.com? If yes, when have you done that? If no, and you are running a custom build, which is the revision of File Manager's repository?
No. I am using the 'vanilla' docker image:
hacdias/filemanager
.3. What are you trying to do? and 4. What did you expect to see?
I am trying to set a single command line argument, but keep default values for every other parameter. I'd expect that changing a single argument won't affect any other.
5. What did you see instead (give full error messages and/or log)? and 6. How can someone who is starting from scratch reproduce this behaviour as minimally as possible?
For example, although the default port is
80
, setting--no-auth
produces an apparently random port number:Workaround:
However, this does not happen with ports only:
The text was updated successfully, but these errors were encountered: