aboutsummaryrefslogtreecommitdiffstats
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Apply requested changesjikstra2022-01-031-7/+1
| |/
| * Implement --route-prefix to set specific route prefixjikstra2021-12-295-22/+25
| |
* | update to actix-web v4.0-rc.2Ali MJ Al-Nasrawy2022-02-054-35/+26
| |
* | merge from jikstraAli MJ Al-Nasrawy2022-02-052-2/+2
|\ \
| * | Upgrade clapSven-Hendrik Haase2022-01-032-2/+2
| |/
* | Bump actix-web to v4.0-beta.15jikstra2021-12-286-32/+56
| | | | | | | | 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
|/
* Fix lintsSven-Hendrik Haase2021-12-201-1/+1
|
* Fixes type in main.rsSam Schlinkert2021-12-101-1/+1
| | | "Availabe" -> "Available"
* Bump depsSven-Hendrik Haase2021-12-092-3/+3
|
* Upgrade to Rust 2021 editionSven-Hendrik Haase2021-10-261-4/+4
|
* Refactor SPA-mode to make it more ergonomicSven-Hendrik Haase2021-10-253-33/+35
|
* Fix lintSven-Hendrik Haase2021-10-251-5/+1
|
* Merge pull request #515 from sinking-point/sinkingpoint/add-spa-index-option-474Sven-Hendrik Haase2021-10-253-11/+49
|\ | | | | Add --spa-index option
| * Use Path instead of PathBuf for parameterBilly Bradley2021-10-181-3/+4
| |
| * Only clone spa_index when necessaryBilly Bradley2021-10-151-1/+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-083-11/+57
| |
* | Update clapSven-Hendrik Haase2021-10-182-28/+11
| |
* | revert unnecessary changesAli MJ Al-Nasrawy2021-10-133-61/+26
|/
* Merge pull request #508 from Jikstra/feat_raw_modeSven-Hendrik Haase2021-09-235-23/+125
|\ | | | | Implement a raw rendering mode for recursive folder download
| * Implement --show-wget-footer argumentjikstra2021-09-103-2/+12
| |
| * Merge branch 'master' into feat_raw_modeJikstra2021-09-104-44/+90
| |\
| * | Apply requested changesjikstra2021-09-101-2/+2
| | |
| * | cargo fmt & cargo clippyjikstra2021-09-023-15/+8
| | |
| * | Fix rebasejikstra2021-09-023-23/+19
| | |
| * | Implement a raw rendering mode for recursive folder downloadjikstra2021-09-013-20/+125
| | | | | | | | | | | | | | | | | | | | | - Raw mode only displays file/folders and is more focused on computer processing - Display a banner in footer to recursively download the current folder with wget
* | | Rename Archlinux -> Arch LinuxSven-Hendrik Haase2021-09-231-1/+1
| |/ |/|
* | Merge pull request #590 from aliemjay/sanitze-pathSven-Hendrik Haase2021-09-041-12/+81
|\ \ | | | | | | file_upload.rs: sanitize path input
| * | Adress review commentsAli MJ Al-Nasrawy2021-09-041-2/+39
| | |
| * | file_upload.rs: sanitize path inputAli MJ Al-Nasrawy2021-09-011-10/+42
| |/ | | | | | | Signed-off-by: Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com>
* | Merge pull request #537 from aliemjay/src-refactor-miscSven-Hendrik Haase2021-09-043-30/+9
|\ \ | |/ |/| [Refactor] Miscellaneous small refactors
| * Simplify custom headersAli MJ Al-Nasrawy2021-08-312-15/+6
| | | | | | | | Signed-off-by: Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com>
| * extract_query_parameters(): avoid clone and simplifyAli MJ Al-Nasrawy2021-08-311-15/+3
| | | | | | | | Signe-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
|/
* Use selected theme in error pageAli MJ Al-Nasrawy2021-08-301-0/+10
|
* 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-306-423/+199
| | | | | | | | | | | | | | | | | | | | | ... 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-305-18/+43
| | | | | | | | | | | | | 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
|