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--cache-dir-->--cacheDir--token-expiration-time-->--tokenExpirationTime--baseurl-->--baseURL
If some flag or environment variable is not working as intended, or if some option is not working, please report a bug.
Changelog
- [f576d3] chore(release): 2.48.0
- [9bdc67] chore(docs): update CLI documentation
- [f41585] fix: use all available flags in quick setup
- [89be0b] refactor: reuse logic for config init and set
- [8c5dc7] fix: add tokenExpirationTime to
config initand troubleshoot docs (#5546) - [0a0cb8] feat: consistent flags and environment variables (#5549)
- [f89435] chore: fix taskfile