Commit graph

154 commits

Author SHA1 Message Date
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
Johann150
b6191ccf13
update dependencies 2021-02-05 22:41:35 +01:00
Johann150
055dceeece
also check logging environment variable 2021-02-05 08:43:07 +01:00
Johann150
86e0fe665d
add tools for Debian 2021-02-05 08:26:24 +01:00
Johann150
742a423021
merge #16 from Johann150/master
loading metadata from sidecar file
2021-02-05 08:20:19 +01:00
Johann150
c7485f6553
small formatting fix
added some intended line breaks
2021-02-04 18:02:17 +01:00
Johann150
f1ff0fe0fe
use Mutex instead of RwLock
Since we only ever need to access it mutably, no need to differentiate
mutable and immutable acces.
2021-02-04 17:56:50 +01:00
Johann150
ac7af67cc5
reformat configuration README 2021-02-04 17:53:32 +01:00
Johann150
548e0f401f
cache parsing, new syntax
Changed the parsing and also parse once when reading the config file and then
cache the parse result, rather than checking the line format every time the
file is served.
2021-02-04 17:00:33 +01:00
Johann150
aa713a2dea
formatting 2021-02-04 16:56:17 +01:00
Johann150
1c28b37080
add some hints to Readme
addresses #25, closes #26
2021-02-04 10:07:13 +01:00
Johann150
b05245da92
add myself to crate authors 2021-01-31 21:14:15 +01:00
Johann150
428bc74023 fix flag name use 2021-01-27 14:50:34 -08:00
Johann150
46866c4320
resolve merge conflicts 2021-01-27 22:00:28 +01:00
Johann150
0411a8278f fix doc comment 2021-01-26 09:36:51 -08:00
Johann150
f0789921e0 make functions into methods of RequestHandle 2021-01-26 09:36:51 -08:00
Johann150
116c9fdcb4 rename flag 2021-01-26 09:36:51 -08:00
Johann150
74853799c7 handle errors in handle_request 2021-01-26 09:36:51 -08:00
Johann150
3353989e7e add log_line to RequestHandle
There are still some problems with this, the error handling in handle_request
will have to be changed to accomodated the new log_line.
2021-01-26 09:36:51 -08:00
Johann150
aa17b5bc17 add RequestHandle struct 2021-01-26 09:36:51 -08:00
Johann150
21486a0d11 add logging for peer IP addresses 2021-01-26 09:36:51 -08:00
Johann150
fdd2ac7e56 simplify meta type to &str
Since this specialty is only used once and this would complicate generating the
logging string from a str array without code duplication.
2021-01-26 09:36:51 -08:00
Johann150
6bbbb5ed4b use sidecar files 2021-01-17 19:43:42 +01:00
Johann150
e68637fb1b fix check_outdated 2021-01-17 19:42:48 +01:00
Johann150
f7ac1fe21b update readme 2021-01-17 19:42:48 +01:00
Johann150
c916827709 add metadata database 2021-01-17 19:42:48 +01:00
Johann150
bb7e885143 run cargo fmt 2021-01-17 19:42:48 +01:00
Matt Brubeck
3d7a28a6bd Version 2.3.0 2021-01-16 18:30:07 -08:00
Johann150
21e16e9a9c update & rephrase readme 2021-01-16 18:24:10 -08:00
Johann150
6d51e97649 fix help message 2021-01-16 18:24:10 -08:00
Johann150
7c4a042cd3 check port against TCP stream's port
This also reinstates the old format for the --addr flag and removes
the separate flag for the port.
2021-01-16 18:24:10 -08:00
Matt Brubeck
7e5517d9c0 Version 2.2.0 2021-01-16 10:59:55 -08:00
Matt Brubeck
72a4cd7c5c Update dependencies 2021-01-16 10:58:54 -08:00
Matt Brubeck
dd4be5b9f6 Take port as a separate command-line argument 2021-01-16 10:42:27 -08:00
Johann150
4e7d09204f only check path segments in URL
This will only check path segments specified in the request URL and not
path segments that are part of the path specified on the command line.

Otherwise if the content directory was (in) a hidden directory, or specified
with a relative path containing "." or ".." segments, nothing would be served.
2021-01-16 09:56:58 -08:00
Johann150
972ecf8c13 correctly redirect directories
cf. <https://lists.orbitalfox.eu/archives/gemini/2021/004827.html>
2021-01-16 09:56:04 -08:00
Johann150
681ba770a1 check all path components 2021-01-05 12:36:50 -08:00
Johann150
af783f6911 configuration flag to reenable secret files 2021-01-05 12:36:50 -08:00
Johann150
7d10fa3c74 do not serve hidden files 2021-01-05 12:36:50 -08:00
Purexo
d9cc1cfffa provide addr binding with dual-stack mode example 2021-01-03 19:04:19 -08:00
Matt Brubeck
1ce32abaa2 Version 2.1.3 2021-01-01 20:10:04 -08:00
Matt Brubeck
1361f07467 Scheme-relative URLs are no longer allowed
https://lists.orbitalfox.eu/archives/gemini/2020/003646.html
2021-01-01 20:10:04 -08:00
Matt Brubeck
c563f27b1a Send close_notify before closing connection 2021-01-01 20:05:19 -08:00
Matt Brubeck
33d39cc34b Organize imports 2020-12-31 18:07:59 -08:00
Matt Brubeck
471a9927a0 Use the Tokio async runtime 2020-12-31 18:05:46 -08:00