aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* | Bump actix-web to v4.0-beta.9Ali MJ Al-Nasrawy2021-12-281-4/+0
|/
* Fixes type in main.rsSam Schlinkert2021-12-101-1/+1
| | | "Availabe" -> "Available"
* Refactor SPA-mode to make it more ergonomicSven-Hendrik Haase2021-10-251-14/+22
|
* Merge pull request #515 from sinking-point/sinkingpoint/add-spa-index-option-474Sven-Hendrik Haase2021-10-251-10/+26
|\ | | | | Add --spa-index option
| * Use Path instead of PathBuf for parameterBilly Bradley2021-10-181-3/+4
| |
| * Fix formattingBilly Bradley2021-10-141-1/+1
| |
| * Use NamedFile as default handler to simplify --spa-index option implementationBilly Bradley2021-10-101-17/+5
| |
| * Add --spa-index optionBilly Bradley2021-10-081-10/+37
| |
* | Update clapSven-Hendrik Haase2021-10-181-16/+5
| |
* | revert unnecessary changesAli MJ Al-Nasrawy2021-10-131-5/+5
|/
* Merge pull request #537 from aliemjay/src-refactor-miscSven-Hendrik Haase2021-09-041-11/+4
|\ | | | | [Refactor] Miscellaneous small refactors
| * Simplify custom headersAli MJ Al-Nasrawy2021-08-311-11/+4
| | | | | | | | Signed-off-by: Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com>
* | Print inverted QR codes side-by-sideAli MJ Al-Nasrawy2021-08-311-5/+15
| |
* | Address review commentsAli MJ Al-Nasrawy2021-08-311-1/+1
| |
* | Print QR code to terminalAli MJ Al-Nasrawy2021-08-311-2/+42
|/
* Exclude embedded routes from authenticationAli MJ Al-Nasrawy2021-08-301-48/+30
|
* Fix clippy::too_many_arguments and rework error ..Ali MJ Al-Nasrawy2021-08-301-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 destinationDean Li2021-08-301-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 commentAli MJ Al-Nasrawy2021-08-301-8/+14
|
* order interface verticallyAli MJ Al-Nasrawy2021-08-301-3/+3
|
* add comment to create_tcp_listenerAli MJ Al-Nasrawy2021-08-301-0/+4
|
* Use exit codes for failureAli MJ Al-Nasrawy2021-08-301-4/+5
|
* Show IP addresses of all local interfacesAli MJ Al-Nasrawy2021-08-301-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 behaviourAli MJ Al-Nasrawy2021-08-301-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.0Ali MJ Al-Nasrawy2021-08-301-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 bindAli MJ Al-Nasrawy2021-08-301-18/+13
|
* Switch from structopt to clap v3Sven-Hendrik Haase2021-08-301-5/+18
|
* Merge pull request #583 from aliemjay/index-fallbackSven-Hendrik Haase2021-08-291-18/+18
|\ | | | | list directory if index not found
| * list directory if index not foundAli MJ Al-Nasrawy2021-08-291-18/+18
| |
* | file_upload.rs: use async/awaitAli MJ Al-Nasrawy2021-08-281-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-betaAli MJ Al-Nasrawy2021-08-281-9/+10
|
* Switch TLS conditional compilation to featureSven-Hendrik Haase2021-08-281-12/+2
|
* Conditionally enable TLS only on supported platformsSven-Hendrik Haase2021-08-271-0/+18
|
* Add TLS support via rustls (fixes #18)Sven-Hendrik Haase2021-08-271-158/+29
|
* Prefer UTF8 for text reponses (fixes #263)Sven-Hendrik Haase2021-04-181-0/+1
| | | | | This should fix most encoding problems in most cases where text files are accessed on various locales.
* Change naming of uncompressed/compressed tarballsDean Li2021-04-181-6/+6
| | | | | | Use following terminology: uncompressed tarballs => `uncompressed tar archives` compressed ones => `gz-compressed tar archives`
* Separate tar archive and tar flagsDean Li2021-04-111-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 depsSven-Hendrik Haase2021-03-281-0/+1
|
* Refuse to start without explicit path if not attached to interactive terminalSven-Hendrik Haase2021-03-281-3/+13
|
* Change start message without arguments to be a bit more clearSven-Hendrik Haase2021-03-281-4/+4
|
* Change default log level to WarnSven-Hendrik Haase2021-03-281-1/+1
|
* Better message for when provided index file doesn't existSven-Hendrik Haase2021-03-281-3/+4
|
* Refactor and separate out arg handling and config handlingSven-Hendrik Haase2021-03-281-5/+73
|
* Generate completions with `miniserve --print-completions <shell>`Andy Freeland2021-03-281-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 filesSven-Hendrik Haase2021-03-071-24/+36
|
* Add program version footerTamas Levai2021-02-281-0/+8
|
* Re-do the way setting multiple headers worksSven-Hendrik Haase2021-02-281-10/+7
|
* Multiple headers support for custom headersDean Li2021-02-271-7/+13
|
* Move the parsing header logic to args.rsDean Li2021-02-241-19/+7
|
* Allow set custom headers from CLIDean Li2021-02-241-0/+28
|