Commit Graph

72 Commits (a66f95b39ff9a461d8f9be9432f74f9d6b7fbaa1)

Author SHA1 Message Date
sigoden 5988442d5c chore: remove debug print 2023-12-14 11:08:10 +00:00
sigoden 3873f4794a
feat: add `--compress` option (#319) 2023-12-14 18:59:28 +08:00
sigoden 44a4ddf973
refactor: change the value name of `--config` (#313) 2023-12-07 15:14:41 +08:00
sigoden 6ff8b29b69
feat: more flexible config values (#299) 2023-11-27 04:24:25 +08:00
sigoden 653cd167d0
feat: password can contain `:` `@` `|` (#297) 2023-11-26 20:47:57 +08:00
sigoden afdfde01f0
fix: unable to start if config file omit bind/port fields (#294) 2023-11-25 18:54:36 +08:00
sigoden a476c15a09
fix: use DUFS_CONFIG to specify the config file path (#286) 2023-11-08 11:10:47 +08:00
sigoden 80ac9afe68
refactor: improve code quanity (#282)
- rename LogHttp to HttpLogger
2023-11-04 17:10:38 +08:00
sigoden 4ef07737e1
feat: support config file with `--config` option (#281) 2023-11-04 16:58:19 +08:00
sigoden 5782c5f413 chore: update description for `--auth` 2023-11-03 21:08:05 +08:00
sigoden 70300b133c
feat: deprecate `--auth-method`, as both options are available (#279)
* feat: deprecate `--auth-method`, both are avaiable

* send one www-authenticate with two schemes
2023-11-03 20:36:23 +08:00
sigoden 033d37c4d4 chore: update cli `--auth` help text 2023-06-02 06:49:06 +08:00
sigoden f8ea41638f
feat: new auth (#218)
The access level path control used by dufs has two disadvantages:

1. One path cannot support multiple users
2. It is very troublesome to set multiple paths for one user

So it needs to be refactored.
The new auth is account based, it closes #207, closes #208.

BREAKING CHANGE: new auth
2023-06-01 18:52:05 +08:00
sigoden f5c0aefd8e
refactor: cli positional rename root => SERVE_PATH(#215) 2023-05-30 16:49:16 +08:00
sigoden 29a04c8d74
refactor: improve error handle (#195) 2023-03-12 15:20:40 +08:00
sigoden 8f4cbb4826 chore: use anyhow to handle error 2023-02-21 17:23:24 +08:00
sigoden c6dcaf95d4
chore: hide env keys from help text (#176) 2023-02-19 22:48:41 +08:00
MuXiu1997 fea9bf988a
feat: use env var for args (#170)
closed #160
2023-02-19 11:40:14 +08:00
sigoden 8d9705caa4
feat: add option --allow-archive (#152)
BREAKING CHANGE: explicitly allow download folder as zip file
2022-12-10 11:09:42 +08:00
Kian-Meng Ang 7eef4407fc
docs: fix typos (#147)
Found via `codespell -S target -L crate,nd`
2022-12-10 09:18:54 +08:00
sigoden 1329e42b9a
chore: upgrade clap to v4 (#146) 2022-11-11 21:46:07 +08:00
sigoden 6ebf619430
feat: support unix sockets (#145) 2022-11-11 08:57:44 +08:00
sigoden 7eaa6f2484 chore: undo hidden arg changes 2022-09-09 21:30:27 +08:00
sigoden a74e40aee5
feat: add --assets options to override assets (#134)
* feat: add --assets options to override assets

* update readme
2022-09-05 10:30:45 +08:00
sigoden bde06fef94
chore: refactor clap multiple_occurrences and multiple_values (#130) 2022-08-27 10:30:08 +08:00
sigoden 64e397d18a chore: update --hidden help message 2022-08-03 08:58:52 +08:00
sigoden ae2f878e62
feat: support customize http log format (#116) 2022-07-31 08:27:09 +08:00
sigoden b791549ec7
feat: improve hidden to support glob (#108) 2022-07-19 20:37:14 +08:00
sigoden 4e823e8bba
feat: make --path-prefix works on serving single file (#102) 2022-07-08 19:30:05 +08:00
sigoden f49b590a56 chore: update description of --path-prefix 2022-07-07 15:44:25 +08:00
sigoden 76e967fa59
feat: add completions (#97) 2022-07-06 12:11:00 +08:00
sigoden 6554c1c308
feat: use feature to conditional support tls (#77) 2022-06-29 09:19:09 +08:00
sigoden 9cfeee0df0 chore: update args help message and readme 2022-06-25 09:58:39 +08:00
sigoden eb7a536a3f
feat: support hiding folders with --hidden (#73) 2022-06-25 08:15:16 +08:00
sigoden 4058a2db72
feat: add option --allow-search (#62) 2022-06-21 07:23:20 +08:00
sigoden c85ea06785 chore: update cli help message and reamde 2022-06-20 19:40:09 +08:00
sigoden 68139c6263 chore: little improves 2022-06-20 15:11:39 +08:00
Joe Koop deb6365a28
feat: added basic auth (#60)
* some small css fixes and changes

* added basic auth
https://stackoverflow.com/a/9534652/3642588

* most tests are passing

* fixed all the tests

* maybe now CI will pass

* implemented sigoden's suggestions

* test basic auth

* fixed some little things
2022-06-20 11:25:09 +08:00
sigoden e66951fd11
refactor: rename --cors to --enable-cors (#57)
BREAKING CHANGE: `--cors` rename to `--enable-cors`
2022-06-19 17:27:09 +08:00
sigoden c3ac2a21c9
feat: serve single file (#54)
close #53
2022-06-19 14:23:10 +08:00
sigoden 9c2e9d1503
feat: path level access control (#52)
BREAKING CHANGE: `--auth` is changed, `--no-auth-access` is removed
2022-06-19 11:26:03 +08:00
sigoden af866aaaf4 chore: optimize --render-try-index 2022-06-17 19:05:25 +08:00
sigoden 5b11bb75dd
feat: add option --render-try-index (#47)
close #46
2022-06-17 08:41:01 +08:00
sigoden 12aafa00d8
feat: listen both ipv4 and ipv6 by default (#40) 2022-06-15 19:33:51 +08:00
sigoden 471bca86c6
test: add integration tests (#36) 2022-06-12 08:43:50 +08:00
sigoden 6b01c143d9
feat: support tls-key in pkcs#8 format (#35) 2022-06-11 15:26:08 +08:00
sigoden 63a7b530bb
feat: support ipv6 (#25) 2022-06-06 10:52:12 +08:00
sigoden b0cc901416 fix: escape path-prefix/url-prefix different 2022-06-06 08:00:26 +08:00
sigoden f138915f20
fix: escape filename (#21)
close #19
2022-06-06 06:51:35 +08:00
sigoden 2f40313a54
feat: use digest auth (#14)
* feat: switch to digest auth

* implement digest auth

* cargo fmt

* no lock
2022-06-05 00:09:21 +08:00