aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Switch from deprecated get_if_addrs to if-addrsSven-Hendrik Haase2023-04-201-1/+1
| | | | Fixes #1079.
* Run cargo fmtSven-Hendrik Haase2022-12-301-3/+2
|
* Fix lintsSven-Hendrik Haase2022-12-191-6/+6
|
* Upgrade clap to v4Sven-Hendrik Haase2022-10-121-1/+1
|
* Tidy up some importsSven-Hendrik Haase2022-09-201-5/+4
|
* Merge branch 'master' into qrcodecyqsimon2022-09-151-3/+2
|\
| * Merge pull request #902 from kianmeng/fix-typosSven-Hendrik Haase2022-09-151-1/+1
| |\ | | | | | | Fix typos
| | * Fix typosKian-Meng Ang2022-09-141-1/+1
| | | | | | | | | | | | Found via `codespell -L crate`.
| * | Fully qualify clap_complete::generateSven-Hendrik Haase2022-09-141-2/+1
| |/
* | Switch to `fast_qr` cratecyqsimon2022-09-011-29/+4
| |
* | Switch to `qrcode` libcyqsimon2022-08-221-27/+25
|/
* Remove trailing space to appease `cargo fmt`cyqsimon2022-07-221-1/+1
|
* Apply suggestions from code reviewcyqsimon2022-07-221-1/+4
| | | Co-authored-by: Sven-Hendrik Haase <svenstaro@gmail.com>
* Minor refactor on `run`cyqsimon2022-07-201-36/+16
|
* refactor `configure_app`cyqsimon2022-07-201-44/+24
|
* Fix security issue with --no-symlinksSven-Hendrik Haase2022-05-181-0/+19
| | | | | Even with --no-symlinks specified, if a direct path to a symlink had been entered, it would be resolved. This fixes that behavior and improves tests to ensure this behavior.
* Add man page support using --print-manpage (fixes #730)Sven-Hendrik Haase2022-02-201-0/+7
|
* Bump depsSven-Hendrik Haase2022-02-161-1/+1
|
* Fix route_prefix for css and faviconAli MJ Al-Nasrawy2022-02-061-5/+2
|
* Merge 'jikstra/feat_route_prefix' #682Ali MJ Al-Nasrawy2022-02-061-5/+2
|\
| * Apply requested changesjikstra2022-01-031-7/+1
| |
| * Implement --route-prefix to set specific route prefixjikstra2021-12-291-4/+7
| |
* | update to actix-web v4.0-rc.2Ali MJ Al-Nasrawy2022-02-051-4/+4
| |
* | merge from jikstraAli MJ Al-Nasrawy2022-02-051-1/+1
|\ \
| * | Upgrade clapSven-Hendrik Haase2022-01-031-1/+1
| |/
* | Bump actix-web to v4.0-beta.15jikstra2021-12-281-4/+10
| | | | | | | | Co-authored-by: Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com>
* | 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!