aboutsummaryrefslogtreecommitdiffstats
path: root/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-10-26Upgrade to Rust 2021 editionSven-Hendrik Haase1-4/+4
2021-10-25Refactor SPA-mode to make it more ergonomicSven-Hendrik Haase3-33/+35
2021-10-25Fix lintSven-Hendrik Haase1-5/+1
2021-10-18Update clapSven-Hendrik Haase2-28/+11
2021-10-18Use Path instead of PathBuf for parameterBilly Bradley1-3/+4
2021-10-15Only clone spa_index when necessaryBilly Bradley1-1/+4
2021-10-14Fix formattingBilly Bradley1-1/+1
2021-10-13revert unnecessary changesAli MJ Al-Nasrawy3-61/+26
2021-10-10Use NamedFile as default handler to simplify --spa-index option implementationBilly Bradley1-17/+5
2021-10-08Add --spa-index optionBilly Bradley3-11/+57
2021-09-23Rename Archlinux -> Arch LinuxSven-Hendrik Haase1-1/+1
2021-09-10Implement --show-wget-footer argumentjikstra3-2/+12
2021-09-10Apply requested changesjikstra1-2/+2
2021-09-04Adress review commentsAli MJ Al-Nasrawy1-2/+39
2021-09-02cargo fmt & cargo clippyjikstra3-15/+8
2021-09-02Fix rebasejikstra3-23/+19
2021-09-01Implement a raw rendering mode for recursive folder downloadjikstra3-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
2021-09-01file_upload.rs: sanitize path inputAli MJ Al-Nasrawy1-10/+42
Signed-off-by: Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com>
2021-08-31Print inverted QR codes side-by-sideAli MJ Al-Nasrawy1-5/+15
2021-08-31Address review commentsAli MJ Al-Nasrawy1-1/+1
2021-08-31Print QR code to terminalAli MJ Al-Nasrawy1-2/+42
2021-08-31Simplify custom headersAli MJ Al-Nasrawy2-15/+6
Signed-off-by: Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com>
2021-08-31extract_query_parameters(): avoid clone and simplifyAli MJ Al-Nasrawy1-15/+3
Signe-off-by: Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com>
2021-08-30Use selected theme in error pageAli MJ Al-Nasrawy1-0/+10
2021-08-30Exclude embedded routes from authenticationAli MJ Al-Nasrawy1-48/+30
2021-08-30Fix clippy::too_many_arguments and rework error ..Ali MJ Al-Nasrawy6-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>
2021-08-30Implement show symlink destinationDean Li5-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
2021-08-30address review commentAli MJ Al-Nasrawy1-8/+14
2021-08-30order interface verticallyAli MJ Al-Nasrawy1-3/+3
2021-08-30add comment to create_tcp_listenerAli MJ Al-Nasrawy1-0/+4
2021-08-30Use exit codes for failureAli MJ Al-Nasrawy1-4/+5
2021-08-30Show IP addresses of all local interfacesAli MJ Al-Nasrawy1-48/+43
.. when binding to wildcard addresses (:: or 0.0.0.0) * Remove local variable `interfaces` because it is no longer used multiple times.
2021-08-30Fix default binding behaviourAli MJ Al-Nasrawy1-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!
2021-08-30Fix -i 0.0.0.0Ali MJ Al-Nasrawy1-23/+4
Don't use `interfaces`, use `miniserve_config.interfaces` instead! Otherwise, "0.0.0.0" is converted to "localhost"!
2021-08-30Fail if any address fails to bindAli MJ Al-Nasrawy1-18/+13
2021-08-30Switch from structopt to clap v3Sven-Hendrik Haase3-39/+61
2021-08-29Fix some warnings when building without TLSSven-Hendrik Haase1-3/+5
2021-08-29list directory if index not foundAli MJ Al-Nasrawy1-18/+18
2021-08-28file_upload.rs: use async/awaitAli MJ Al-Nasrawy2-135/+102
... and rewrite {save_file, handle_multipart} ... and fix clippy warning about create_error_response() being always Ok()
2021-08-28migrate to actix-web v4.0-betaAli MJ Al-Nasrawy5-61/+75
2021-08-28Switch TLS conditional compilation to featureSven-Hendrik Haase3-54/+9
2021-08-27Conditionally enable TLS only on supported platformsSven-Hendrik Haase3-0/+66
2021-08-27Add backslash to percent_encode_sets.PATH_SEGMENT. Fixes #545jikstra1-1/+1
2021-08-27Fix accidental formattingSven-Hendrik Haase1-74/+74
2021-08-27Add TLS support via rustls (fixes #18)Sven-Hendrik Haase3-232/+292
2021-08-25Upgrade qrcodegen (fixes #568)Sven-Hendrik Haase1-2/+33
2021-06-28Fix lintsSven-Hendrik Haase2-4/+4
2021-04-18Prefer UTF8 for text reponses (fixes #263)Sven-Hendrik Haase1-0/+1
This should fix most encoding problems in most cases where text files are accessed on various locales.
2021-04-18Rename compression code references to 'archive'Sven-Hendrik Haase3-35/+35
This name more closely resembles its purpose. For instance, we also now support plain tar archives which are uncompressed but archives nonetheless.
2021-04-18Change naming of uncompressed/compressed tarballsDean Li5-23/+18
Use following terminology: uncompressed tarballs => `uncompressed tar archives` compressed ones => `gz-compressed tar archives`