Commit graph

698 commits

Author SHA1 Message Date
Johann150
1059f8b94a
never log remote port
This information is basically useless anyway and fills logs needlessly.
Because this is not necessarily true for the local port because multiple ports
may be selected for hosting, logging for the local socket address is unchanged.
2021-02-25 14:14:08 +01:00
Johann150
9925d927a4
add more tests 2021-02-20 11:14:14 +01:00
Johann150
3c6684d54c
allow for parallel tests
By default the libtest test harness runs multiple tests in parallel.
This makes tests fail because the server port is already occupied by another port.
2021-02-20 10:22:12 +01:00
Johann150
e1d808a790
use crate from crates.io 2021-02-20 09:09:45 +01:00
Johann150
f6ba98aa24
add test framework and a basic test 2021-02-19 19:31:59 +01:00
Johann150
be2d6f9f00
add CI actions
actual tests will still have to be added.
2021-02-19 12:20:16 +01:00
Johann150
bc501ebcc5
update CHANGELOG and CONTRIBUTING
Moved updating the changelog from the quality standards up to the workflow
section so it should not be missed, since it is not really a quality standard
but an action to be performed.
2021-02-19 12:08:19 +01:00
Johann150
b5fa24cb5b
resolve TODO comment for Url 2021-02-19 12:01:59 +01:00
Johann150
beb48937e0
Merge pull request #38 from 06kellyjac/install_nix
add install notes for nix/NixOS
2021-02-19 11:11:36 +01:00
Johann150
548d34d8a8
simplify README structure
The document should be easily convertable to text/gemini format.
Level 4 headings are therefore undesirable.
2021-02-19 11:09:43 +01:00
06kellyjac
4ff5352f21 add install notes for nix/NixOS 2021-02-19 09:48:16 +00:00
Johann150
ec1b587f2f
Merge pull request #37 from 06kellyjac/no_help_error
help exit with code 0
2021-02-19 10:45:19 +01:00
06kellyjac
4e130dc89e have help exit with code 0 2021-02-19 08:33:00 +00:00
Johann150
3ba808ca79
fix binary compression on Windows 2021-02-18 11:07:40 +01:00
Johann150
16a9af51b3
update changelog and homepage 2021-02-12 21:53:31 +01:00
Johann150
216797afc7
change homepage 2021-02-12 21:03:20 +01:00
Johann150
7af42a9bd5
make semicolon not a comment
This causes issues with MIME media type parameters.
2021-02-12 20:34:03 +01:00
Johann150
7f4d71722d
fix README 2021-02-12 17:50:19 +01:00
Johann150
eafe3fdd82
add release date to changelog 2021-02-12 17:01:13 +01:00
Johann150
780c83db3b
release v2.5.0 2021-02-12 16:57:41 +01:00
Johann150
197e4592b9
use configparser crate
This parser can correctly read globs from configuration keys which allows
their use not just in theory in the server logic but in the config file too.
2021-02-12 16:51:42 +01:00
Johann150
fdca530591
allow globs in config file paths
The configuration parser will have to be changed again because YAML does not
support asterisks in its key names.
2021-02-12 15:00:29 +01:00
Johann150
49813d0c68
serve hidden files if there is a .meta config for them 2021-02-11 18:46:20 +01:00
Johann150
bd9ed3255a
add central configuration mode
also slight correction of the documentation because we are now using YAML
(a space is now required behind the colon)
2021-02-11 09:04:38 +01:00
Johann150
8fd9ca15c3
better error message for missing keys (again)
adresses comments from #33
Loading the certificate and key file is done at startup because:
1. We can detect the incorrect file faster and fail the whole server and not
   just a worker thread. All subsequent worker threads would fail for the same
   reason anyway.
2. We do not have to read the same unchanged files over and over again. This
   is good because file I/O is slower than in-memory cloning instead.
2021-02-10 23:39:11 +01:00
Johann150
fb0a30e5fc
better error message for incorrect keys 2021-02-10 22:41:39 +01:00
Johann150
e91c99ddab
adjust configuration format info
also corrected some spelling mistakes
2021-02-10 21:38:01 +01:00
Johann150
544f577b59
use YAML parser for sidecar files
The syntax so far is (compatible with) YAML.
2021-02-10 21:25:22 +01:00
Johann150
8f2cfe7a8f
spellcheck CHANGELOG, add unreleased changes 2021-02-10 08:25:06 +01:00
Johann150
165deb1e4d
add community documents 2021-02-10 08:06:03 +01:00
Johann150
f26e001e1d
add CHANGELOG in dedicated file 2021-02-09 20:38:52 +01:00
Johann150
45420043dd
add basic vhosts (#31) 2021-02-09 19:53:52 +01:00
Johann150
9d9fb3d31b
resolve merge conflicts 2021-02-09 19:52:29 +01:00
Johann150
8683d7130c
move startup script to right directory 2021-02-09 16:00:29 +01:00
Johann150
a9588350a0
format using cargo fmt 2021-02-09 15:01:26 +01:00
Johann150
03325ba1a4
add flag for only TLSv1.3
closes #12
2021-02-09 14:45:47 +01:00
gegeweb
670ccaab73 add FreeBSD startup script
closes #13
2021-02-09 12:32:49 +01:00
Johann150
309da06208
harmonise help texts 2021-02-08 21:52:22 +01:00
Johann150
8fbbec2b4b
implement simple vhosts
closes #28
2021-02-08 21:52:22 +01:00
Johann150
4ae9cd5826
correct IPv6 syntax
as mentioned by DistroTube this causes problems on some systems
2021-02-08 19:29:40 +01:00
Johann150
f7873a1372
update homepage 2021-02-08 10:32:34 +01:00
Johann150
5de00f66bb
reenable multiple occurences of --addr
Accidentally disabled this when merging reformatting.
2021-02-08 10:22:16 +01:00
Johann150
2782d744bf
hint at tools directory 2021-02-07 18:15:10 +01:00
Johann150
e0cd1a723a
resolve clippy warnings 2021-02-06 20:03:58 +01:00
Johann150
3089a4034a
use cargo cross
The problems I had using podman were resolved by realizing that ubuntu-latest
does not actually mean the latest version of Ubuntu (for now) so explicitly
stating the Ubuntu version, installing podman works fine and can build binaries
for Raspberry Pi properly.
2021-02-06 17:06:46 +01:00
Johann150
cd821a32c1
remove one last markdown link 2021-02-06 11:39:58 +01:00
Johann150
2550710e18
exclude content directory from cargo package 2021-02-06 11:02:53 +01:00
Matt Brubeck
eb4beef096
Add source for Agate's Gemini capsule (#27)
Add source for Agate's Gemini capsule and update it for v2.4.0

Co-authored-by: mbrubeck <mbrubeck@limpet.net>
2021-02-06 10:56:07 +01:00
Johann150
bc165876cc
increment version number of release 2021-02-06 10:08:41 +01:00
Johann150
4471607f96
add release build action
No longer using `cross`, so Cross.toml is not needed any more.
Instead releases are just built with cargo build --release.
2021-02-05 23:52:45 +01:00