aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs (unfollow)
Commit message (Collapse)AuthorFilesLines
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 Haase1-5/+18
2021-08-29list directory if index not foundAli MJ Al-Nasrawy1-18/+18
2021-08-28file_upload.rs: use async/awaitAli MJ Al-Nasrawy1-2/+2
... 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-Nasrawy1-9/+10
2021-08-28Switch TLS conditional compilation to featureSven-Hendrik Haase1-12/+2
2021-08-27Conditionally enable TLS only on supported platformsSven-Hendrik Haase1-0/+18
2021-08-27Add TLS support via rustls (fixes #18)Sven-Hendrik Haase1-158/+29
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-18Change naming of uncompressed/compressed tarballsDean Li1-6/+6
Use following terminology: uncompressed tarballs => `uncompressed tar archives` compressed ones => `gz-compressed tar archives`
2021-04-11Separate tar archive and tar flagsDean Li1-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
2021-03-28Bump depsSven-Hendrik Haase1-0/+1
2021-03-28Refuse to start without explicit path if not attached to interactive terminalSven-Hendrik Haase1-3/+13
2021-03-28Change start message without arguments to be a bit more clearSven-Hendrik Haase1-4/+4
2021-03-28Change default log level to WarnSven-Hendrik Haase1-1/+1
2021-03-28Better message for when provided index file doesn't existSven-Hendrik Haase1-3/+4
2021-03-28Refactor and separate out arg handling and config handlingSven-Hendrik Haase1-5/+73
2021-03-28Generate completions with `miniserve --print-completions <shell>`Andy Freeland1-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.
2021-03-07Add option to show hidden filesSven-Hendrik Haase1-24/+36
2021-02-28Add program version footerTamas Levai1-0/+8
2021-02-28Re-do the way setting multiple headers worksSven-Hendrik Haase1-10/+7
2021-02-27Multiple headers support for custom headersDean Li1-7/+13
2021-02-24Move the parsing header logic to args.rsDean Li1-19/+7
2021-02-24Allow set custom headers from CLIDean Li1-0/+28
2021-02-19Fix lintsSven-Hendrik Haase1-6/+6
2021-01-04Fix indentationTamas Levai1-2/+2
Convert tabs to spaces.
2021-01-04Add option to list directories firstTamas Levai1-0/+5
2020-11-08Now compiles on stableSven-Hendrik Haase1-2/+0
2020-10-01restore default theme cli option and add default theme dark optionLukas Stabe1-0/+18
2020-09-30Remove actix-rtequal-l21-1/+1
2020-09-26compile scss at build timeLukas Stabe1-5/+2
2020-09-26appease cargo fmtLukas Stabe1-5/+8
2020-09-26remove default color scheme cli argumentLukas Stabe1-4/+0
2020-09-26move css out of html into its own routeLukas Stabe1-1/+23
2020-09-25[wip] client-side color-scheme handlingLukas Stabe1-14/+1
2020-09-24add title option (#335) and breadcrumb links in headingLukas Stabe1-0/+5
2020-09-24Sorry cargo fmtSven-Hendrik Haase1-2/+11
2020-09-24Add embedded favicon (fixes #364)Sven-Hendrik Haase1-2/+21
2020-09-24Slightly better variable nameSven-Hendrik Haase1-4/+4
At least it's better than before. :)
2020-07-21Use actix-web-httpauth for authentication middlewareequal-l21-1/+5
2020-07-21Update to actix 2 and futures 0.3equal-l21-53/+50
2020-07-05Add generate QR code (#330)wyhaya1-0/+5
* Add generate QR code * Add --qrcode option
2020-05-10make sure archiving is opt-inmarawan ragab1-4/+9
2020-03-11Format everythingSven-Hendrik Haase1-7/+10