Commit Graph

69 Commits (c284de9d2c1f01cb2a7a1c87423108ec531b7bcc)

Author SHA1 Message Date
Henrique Dias 984ea7b569
fix: add transitionary support for FB_BASEURL 2025-11-18 11:30:43 +01:00
Henrique Dias fd7b70cf38
refactor: rename python for clarification 2025-11-18 11:29:28 +01:00
Henrique Dias 420adea7e6
fix: options should only override if set 2025-11-17 09:58:27 +01:00
Henrique Dias f41585f039
fix: use all available flags in quick setup 2025-11-17 09:17:30 +01:00
Henrique Dias 0a0cb8046f
feat: consistent flags and environment variables (#5549)
- In the root command, all flags are now correctly available as environmental variables, except for `--config` flag. This was already supposed to be the case, but due to bugs in the implementation it didn't work properly.
- All configuration options (unless I missed something) that are available as flags should now properly update the configuration when using the `config init` and `config set` commands.
- 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`
2025-11-17 08:45:43 +01:00
Henrique Dias 5de4099cba
fix: exit 0 when gracefully shutting down (#5555) 2025-11-16 14:13:21 +01:00
Henrique Dias 23c4e4565b
chore: remove 'nolint' comments 2025-11-15 09:01:21 +01:00
Henrique Dias 13814e1119
fix: env key replacer and remove unused function (#5547) 2025-11-15 08:40:37 +01:00
Lucky Jain ac7b49c148
feat: add option to hide the login button from public-facing pages (#3922)
Co-authored-by: Henrique Dias <mail@hacdias.com>
2025-11-14 16:21:08 +01:00
Adam b9787c78f3
feat: allow setting ace editor theme (#3826)
Co-authored-by: Henrique Dias <mail@hacdias.com>
2025-09-25 16:47:00 +02:00
Jagadam Dinesh Reddy 1582b8b2cd
feat: better error handling for sys kill signals 2025-07-22 08:25:21 +02:00
Henrique Dias 88f1442932
fix: print correct user on setup 2025-07-15 08:18:38 +02:00
Henrique Dias bf37f88c32
fix: passthrough the minimum password length (#5236) 2025-06-29 11:28:32 +02:00
Henrique Dias 464b644adf
fix: add configurable minimum password length (#5225) 2025-06-28 10:07:34 +02:00
Henrique Dias ae4fb0ea25 chore: make as exception to mnd 2025-06-27 08:19:34 +02:00
Adrien Kohlbecker 8230eb7ab5 fix: Graceful shutdown 2025-06-27 08:19:34 +02:00
Oleksandr Redko 1d494ff315
build: bump golangci-lint to 2.1.6 2025-06-27 07:56:15 +02:00
Henrique Dias 21b0827808
Merge commit from fork 2025-06-25 20:50:38 +02:00
Henrique Dias 4bfbf33249
fix: linting issues 2025-06-25 17:37:18 +02:00
Henrique Dias e74c958862
fix: linting issues 2025-06-25 17:34:00 +02:00
Henrique Dias 221451a517
fix: correctly parse negative boolean flags 2025-06-25 17:24:06 +02:00
Henrique Dias 23bd8f6715 fix: remove incorrect default for password flag 2025-06-24 21:43:44 +02:00
bo0tzz c606a01a2d fix: err shadowing lint 2025-06-04 17:36:55 +02:00
bo0tzz a46acba5f9 fix: generate random admin password on quick setup
This should help mitigate issues like #3646
2025-06-04 17:36:55 +02:00
Andreas Deininger d729701bd4
chore: fix typos (#3490) 2024-09-23 11:55:07 +02:00
Oleg Lobanov ae0af1f996
chore: fix golangci-lint errors 2024-04-01 18:24:06 +02:00
Fritz Lin 391a078cd4
feat: make user session timeout configurable by flags (#2845) 2023-12-06 11:19:30 +01:00
Tobias Goerke 7b35815754
feat: integrate tus.io for resumable and chunked uploads (#2145) 2023-07-28 18:15:44 +02:00
Oleg Lobanov 10d628aecc
chore: upgrade golangci-lint to 1.51.1 2023-02-16 09:19:44 +01:00
Oleg Lobanov 02730bb9bf
fix: set correct scope when user home creation is enabled 2022-06-03 16:04:15 +02:00
Oleg Lobanov f81857acce
build: refactor makefile 2021-12-20 23:36:50 +01:00
Oleg Lobanov 34d7d2c8c4
chore: upgrade golangci-lint 2021-07-26 12:00:05 +02:00
Oleg Lobanov fc5506179a
refactor: migrate from rice to embed.FS 2021-03-09 19:09:32 +01:00
Oleg Lobanov 23f84642e6
build: use make for building the project (#1304) 2021-03-04 00:10:08 +01:00
WeidiDeng 6914063853
feat: allow disabling file detections by reading header (#1175) 2021-01-07 11:30:17 +01:00
Julien Loir e8b4e9af46
feat: add single click mode (#1139) 2020-11-23 19:06:37 +01:00
Ramires Viana f2c4e78381 fix: allow start from Windows explorer 2020-10-19 13:41:40 +00:00
Keagan McClelland 97693cc611
feat: add disable exec flag (#1090) 2020-10-01 16:45:24 +02:00
Oleg Lobanov c5abbb4e1c
chore: fix lint errors 2020-09-11 16:02:16 +02:00
Oleg Lobanov 65ac73414f
feat: add --socket-perm flag to control unix socket file permissions (closes #1060) 2020-09-11 15:59:06 +02:00
Oleg Lobanov 95bc92955f
feat: cache resized images 2020-07-27 19:26:45 +02:00
Oleg Lobanov aa78e3ab1f
feat: add param to disable img resizing 2020-07-27 19:26:44 +02:00
Oleg Lobanov 94ef59602f
feat: limit image resize workers 2020-07-27 19:26:44 +02:00
Oleg Lobanov 700f32718e
refactor: add more go linters (#970) 2020-06-01 01:12:36 +02:00
Henrique Dias b3a822b4e8 fix: address 2019-05-20 22:05:22 +01:00
Henrique Dias d0f8c141e1
feat: adds support for unix sockets (#729)
License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
2019-05-17 11:48:06 +01:00
Henrique Dias fa86894550 lint: lint the code
License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

Former-commit-id: 984c56e0b9a9169b10c6017fbd68ab4fbd3868d7 [formerly 27c43314222c723a220b9b1d2141e1509ed05627] [formerly 0a9f6c47bff2d653035c93765ea08ade73ec450c [formerly b7fdcc3ee9]]
Former-commit-id: c27e7fa41f20f433a9a0a97ecc40ab78968b43dc [formerly 185db4a17969cd4fb76cc2b06bd58221c9c6c100]
Former-commit-id: 9b26d1b0642c61cd38f7cdf422f95b2bf9a9614d
2019-04-20 14:15:28 +01:00
荒野無燈 65a53514d5 global settings: add createUserDir option. new feature: auto create user home dir while adding user.
Former-commit-id: 331a76abdc611236ccc761d0fd9a814ed1ee0c35 [formerly 0c1024a5b8109c84d213e0cbdbe05e10eb5793d4] [formerly 467e1789f55c410ff2ca9e9ef125d9fe28410bc9 [formerly e8570e4dba]]
Former-commit-id: 1eed58870b6e009d84806db6b55efc5fc3983e2a [formerly 3e9083f7758e72bd307ed23c4b512a8ab5adc523]
Former-commit-id: 5023ef77eb92636e62fde511ea609114e667a7d7
2019-02-19 11:55:18 +08:00
Henrique Dias 1259fc1bbc feat: remove version cmd (#675)
License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
Former-commit-id: 04a60c58f20d63ca7b25731c41e144bcf0f538cc [formerly e6e179799b64779515051df53352df5e63edc259] [formerly 0689eba81ff5f7ee3ea75db37b91cef4d6d8f35c [formerly 85899acae6]]
Former-commit-id: 96ca0cadb94131ddd3b57f0f11ad629edf687e40 [formerly 50130c75d39e67b15a645e7f4879acf34a5d6620]
Former-commit-id: 53b8120673a82217c3625de161d4ec57a96e1470
2019-02-15 12:54:44 +01:00
Henrique Dias 58ff28f84d feat: export generate key
License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

Former-commit-id: 3088476c44d4608e2b8c90d3c274b6db17ef30c0 [formerly e40d3ba193e0b54bccce8c13459032f51af84c7b] [formerly 33cabf26abee5ef4f1dd63e423fe1b0fa7ae4f7c [formerly a3daac84a2]]
Former-commit-id: fe022f36fc4d7d8442df8c0fa4a86e2ff3ec328e [formerly 1d949d0ae88b3b5a9b8e4da5c3b6ca814a319589]
Former-commit-id: 36207ddeb7eba335f5fe73ea9dcdf6bffc6265bf
2019-01-11 20:25:39 +00:00