Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | Fix formatting | Billy Bradley | 2021-10-14 | 1 | -1/+1 | |
| | | ||||||
| * | Use NamedFile as default handler to simplify --spa-index option implementation | Billy Bradley | 2021-10-10 | 1 | -17/+5 | |
| | | ||||||
| * | Add --spa-index option | Billy Bradley | 2021-10-08 | 1 | -10/+37 | |
| | | ||||||
* | | Update clap | Sven-Hendrik Haase | 2021-10-18 | 1 | -16/+5 | |
| | | ||||||
* | | revert unnecessary changes | Ali MJ Al-Nasrawy | 2021-10-13 | 1 | -5/+5 | |
|/ | ||||||
* | Merge pull request #537 from aliemjay/src-refactor-misc | Sven-Hendrik Haase | 2021-09-04 | 1 | -11/+4 | |
|\ | | | | | [Refactor] Miscellaneous small refactors | |||||
| * | Simplify custom headers | Ali MJ Al-Nasrawy | 2021-08-31 | 1 | -11/+4 | |
| | | | | | | | | Signed-off-by: Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com> | |||||
* | | Print inverted QR codes side-by-side | Ali MJ Al-Nasrawy | 2021-08-31 | 1 | -5/+15 | |
| | | ||||||
* | | Address review comments | Ali MJ Al-Nasrawy | 2021-08-31 | 1 | -1/+1 | |
| | | ||||||
* | | Print QR code to terminal | Ali MJ Al-Nasrawy | 2021-08-31 | 1 | -2/+42 | |
|/ | ||||||
* | Exclude embedded routes from authentication | Ali MJ Al-Nasrawy | 2021-08-30 | 1 | -48/+30 | |
| | ||||||
* | Fix clippy::too_many_arguments and rework error .. | Ali MJ Al-Nasrawy | 2021-08-30 | 1 | -95/+8 | |
| | | | | | | | | | | | | | | | | | | | | | ... page rendering Too many arguments are moved around and many of them are already stored in MiniserveConfig. Many of these are used to render error pages. To fix this issue, it was necessary to rework error page rendering: 1. Implement `ResponseError` for `ContextualError` so that it can be returned from service handlers as is and will then be automatically logged to the console and converted into an error response. 2. At service handler level, all error responses are now rendered as plain text. 3. 'error_page_middleware' is now responsible for the rendering of the final error page from plain text reponses. Signed-off-by: Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com> | |||||
* | Implement show symlink destination | Dean Li | 2021-08-30 | 1 | -0/+2 | |
| | | | | | | | | | | | | | Add option `show_symlink_info` to represent show symlink info or not. (Default to no) Show symlink destination after symlink symbol in directory listing Resemble `ls -l` and also the short argument select for this feature is also `-l`. Basic testing is included. Related to #499 | |||||
* | address review comment | Ali MJ Al-Nasrawy | 2021-08-30 | 1 | -8/+14 | |
| | ||||||
* | order interface vertically | Ali MJ Al-Nasrawy | 2021-08-30 | 1 | -3/+3 | |
| | ||||||
* | add comment to create_tcp_listener | Ali MJ Al-Nasrawy | 2021-08-30 | 1 | -0/+4 | |
| | ||||||
* | Use exit codes for failure | Ali MJ Al-Nasrawy | 2021-08-30 | 1 | -4/+5 | |
| | ||||||
* | Show IP addresses of all local interfaces | Ali MJ Al-Nasrawy | 2021-08-30 | 1 | -48/+43 | |
| | | | | | | | .. when binding to wildcard addresses (:: or 0.0.0.0) * Remove local variable `interfaces` because it is no longer used multiple times. | |||||
* | Fix default binding behaviour | Ali MJ Al-Nasrawy | 2021-08-30 | 1 | -5/+22 | |
| | | | | | | | | | | | | On some platforms, binding to to both "::" and "0.0.0.0" at the same time is not allowed because "::" may already accepts ipv4 connections. For other platforms, binding to both is necessary to support ipv4 and ipv6. This platform-specific behaviour is due to the variation in the default value for the socket option "IPV6_ONLY". Fix this by always setting the "IPv6_ONLY" sockopt to true! | |||||
* | Fix -i 0.0.0.0 | Ali MJ Al-Nasrawy | 2021-08-30 | 1 | -23/+4 | |
| | | | | | Don't use `interfaces`, use `miniserve_config.interfaces` instead! Otherwise, "0.0.0.0" is converted to "localhost"! | |||||
* | Fail if any address fails to bind | Ali MJ Al-Nasrawy | 2021-08-30 | 1 | -18/+13 | |
| | ||||||
* | Switch from structopt to clap v3 | Sven-Hendrik Haase | 2021-08-30 | 1 | -5/+18 | |
| | ||||||
* | Merge pull request #583 from aliemjay/index-fallback | Sven-Hendrik Haase | 2021-08-29 | 1 | -18/+18 | |
|\ | | | | | list directory if index not found | |||||
| * | list directory if index not found | Ali MJ Al-Nasrawy | 2021-08-29 | 1 | -18/+18 | |
| | | ||||||
* | | file_upload.rs: use async/await | Ali MJ Al-Nasrawy | 2021-08-28 | 1 | -2/+2 | |
|/ | | | | | ... and rewrite {save_file, handle_multipart} ... and fix clippy warning about create_error_response() being always Ok() | |||||
* | migrate to actix-web v4.0-beta | Ali MJ Al-Nasrawy | 2021-08-28 | 1 | -9/+10 | |
| | ||||||
* | Switch TLS conditional compilation to feature | Sven-Hendrik Haase | 2021-08-28 | 1 | -12/+2 | |
| | ||||||
* | Conditionally enable TLS only on supported platforms | Sven-Hendrik Haase | 2021-08-27 | 1 | -0/+18 | |
| | ||||||
* | Add TLS support via rustls (fixes #18) | Sven-Hendrik Haase | 2021-08-27 | 1 | -158/+29 | |
| | ||||||
* | Prefer UTF8 for text reponses (fixes #263) | Sven-Hendrik Haase | 2021-04-18 | 1 | -0/+1 | |
| | | | | | This should fix most encoding problems in most cases where text files are accessed on various locales. | |||||
* | Change naming of uncompressed/compressed tarballs | Dean Li | 2021-04-18 | 1 | -6/+6 | |
| | | | | | | Use following terminology: uncompressed tarballs => `uncompressed tar archives` compressed ones => `gz-compressed tar archives` | |||||
* | Separate tar archive and tar flags | Dean Li | 2021-04-11 | 1 | -1/+7 | |
| | | | | | | | It used to have one flag (-r) to enable both tar archive and tar. Now it has two flags [ -r: for tar, -g: for tar archive]. Related to #451 | |||||
* | Bump deps | Sven-Hendrik Haase | 2021-03-28 | 1 | -0/+1 | |
| | ||||||
* | Refuse to start without explicit path if not attached to interactive terminal | Sven-Hendrik Haase | 2021-03-28 | 1 | -3/+13 | |
| | ||||||
* | Change start message without arguments to be a bit more clear | Sven-Hendrik Haase | 2021-03-28 | 1 | -4/+4 | |
| | ||||||
* | Change default log level to Warn | Sven-Hendrik Haase | 2021-03-28 | 1 | -1/+1 | |
| | ||||||
* | Better message for when provided index file doesn't exist | Sven-Hendrik Haase | 2021-03-28 | 1 | -3/+4 | |
| | ||||||
* | Refactor and separate out arg handling and config handling | Sven-Hendrik Haase | 2021-03-28 | 1 | -5/+73 | |
| | ||||||
* | Generate completions with `miniserve --print-completions <shell>` | Andy Freeland | 2021-03-28 | 1 | -4/+12 | |
| | | | | | | | | This patch adds a `--print-completions` option to generate shell completion files at runtime. This ensures the completions are always up to date. Fixes #377. | |||||
* | Add option to show hidden files | Sven-Hendrik Haase | 2021-03-07 | 1 | -24/+36 | |
| | ||||||
* | Add program version footer | Tamas Levai | 2021-02-28 | 1 | -0/+8 | |
| | ||||||
* | Re-do the way setting multiple headers works | Sven-Hendrik Haase | 2021-02-28 | 1 | -10/+7 | |
| | ||||||
* | Multiple headers support for custom headers | Dean Li | 2021-02-27 | 1 | -7/+13 | |
| | ||||||
* | Move the parsing header logic to args.rs | Dean Li | 2021-02-24 | 1 | -19/+7 | |
| | ||||||
* | Allow set custom headers from CLI | Dean Li | 2021-02-24 | 1 | -0/+28 | |
| | ||||||
* | Fix lints | Sven-Hendrik Haase | 2021-02-19 | 1 | -6/+6 | |
| | ||||||
* | Fix indentation | Tamas Levai | 2021-01-04 | 1 | -2/+2 | |
| | | | | Convert tabs to spaces. | |||||
* | Add option to list directories first | Tamas Levai | 2021-01-04 | 1 | -0/+5 | |
| | ||||||
* | Now compiles on stable | Sven-Hendrik Haase | 2020-11-08 | 1 | -2/+0 | |
| | ||||||
* | Merge pull request #380 from ahti/master | Sven-Hendrik Haase | 2020-10-02 | 1 | -10/+33 | |
|\ | | | | | client-side color-scheme handling |