Flags and Environment Variables Improvements
- In the root command (
filebrowser), all flags are now correctly available as environmental variables, except for--configflag. This was already supposed to be the case, but due to bugs in the implementation it didn't work properly. - When performing quick setup, all flags should be taken into account.
- All configuration options that are available as flags should now properly update the configuration when using the
config initandconfig setcommands. - Flag names are now consistently in the lowerCamelCase format. All flags that were in a different format have been updated in a backwards compatible way. For a transitionary period of at least 6 months, both will work:
--dir-mode-->--dirMode--hide-login-button-->--hideLoginButton--create-user-dir-->--createUserDir--minimum-password-length-->--minimumPasswordLength--socket-perm-->--socketPerm--disable-thumbnails-->--disableThumbnails--disable-preview-resize-->--disablePreviewResize--disable-exec-->--disableExec--disable-type-detection-by-header-->--disableTypeDetectionByHeader--img-processors-->--imageProcessors(environment variable changed fromFB_IMG_PROCESSORStoFB_IMAGE_PROCESSORS)--cache-dir-->--cacheDir--token-expiration-time-->--tokenExpirationTime--baseurl-->--baseURL(environment variable changed fromFB_BASEURLtoFB_BASE_URL)
[!IMPORTANT]
A bug has been squashed where the flag values (and their defaults) were always being used on runtime for enabling and disabling certain features. This meant that enabling and disabling these settings via
filebrowser config sethad no effect. This is now fixed.As a consequence, some users may notice that some of the features they previously had enabled are now disabled, and vice-versa. This bug pertained the following features: thumbnails, resize of image previews, type detection by header sniffing, and command execution.
You can permanently configure these features using
filebrowser config set. For example, to enable thumbnails, runfilebrowser config set --disableThumbnails=false.
If some flag or environment variable is not working as intended, or if some option is not working, please report a bug.
Changelog
- [c284de] chore(release): 2.48.2
- [984ea7] fix: add transitionary support for FB_BASEURL
- [fd7b70] refactor: rename python for clarification
- [13e3b4] chore(deps): update all non-major dependencies (#5560)