Commit Graph

160 Commits

Author SHA1 Message Date
Brian Picciano
a3c823c7b2 Simplify the http service a bunch, better error handling 2023-07-08 16:04:33 +02:00
Brian Picciano
82290d8b0b Get rid of read_file_into, use streams to serve files from domain manager 2023-07-08 15:53:40 +02:00
Brian Picciano
8b75b141f4 Alias BoxByteStream, and test git get_file implementation 2023-07-08 15:22:44 +02:00
Brian Picciano
60b90746fc Implement origin::Store::get_file, to deprecate read_file_into 2023-07-08 14:43:36 +02:00
Brian Picciano
0b790ecc4a Use util::BoxedFuture everywhere, for aesthetics 2023-07-06 18:04:29 +02:00
Brian Picciano
5e264093ec Get rid of origin::Origin trait completely, move read_file_into onto the origin::Store itself 2023-07-05 19:03:51 +02:00
Brian Picciano
773001b158 Changes suggested by clippy 2023-07-04 19:42:12 +02:00
Brian Picciano
6863694293 Pass descr around as a reference, generally 2023-07-04 19:33:03 +02:00
Brian Picciano
95f7f97716 move roadmap to README 2023-07-04 19:09:07 +02:00
Brian Picciano
9c36ae1c7b Test mux store... kinda 2023-07-03 14:30:41 +02:00
Brian Picciano
7a35befffe Don't include Send/Sync in trait requirements 2023-07-03 13:39:44 +02:00
Brian Picciano
fa85fe7fd8 Fix more tests 2023-07-03 13:23:07 +02:00
Brian Picciano
bd96581c6a Don't return Box from constructors 2023-06-29 16:54:55 +02:00
Brian Picciano
0b22801503 Basic, untested implementation of mux origin store 2023-06-29 16:15:15 +02:00
Brian Picciano
dd07bbf7ac Fix tests in git store 2023-06-25 14:52:44 +02:00
Brian Picciano
644d2bab23 Rename to domani 2023-06-25 13:35:59 +02:00
Brian Picciano
fcab32e0f7 Refactor TaskStack some more, allow for deferred syncronous tasks 2023-06-21 17:16:49 +02:00
Brian Picciano
d0f601a9f7 Make TaskStack cancel each task individually, not all at once 2023-06-21 14:29:47 +02:00
Brian Picciano
5e89d21ce3 Fix formatting in domain manager 2023-06-21 14:05:28 +02:00
Brian Picciano
505015a4bd Removed usage of sync::Arc where possible 2023-06-21 14:02:42 +02:00
Brian Picciano
289a185d42 Make domain manager do cert resolving for tls 2023-06-21 13:47:04 +02:00
Brian Picciano
51cb6aadce use Box for origin::Store 2023-06-21 13:24:00 +02:00
Brian Picciano
7dd52839b1 Use TaskStack to clean up startup/shutdown logic significantly 2023-06-21 13:15:42 +02:00
Brian Picciano
f2374cded5 Use TaskSet to cleanly shut down the http service 2023-06-19 20:57:26 +02:00
Brian Picciano
43f4b98b38 Move handle_request onto service as a method 2023-06-19 20:12:15 +02:00
Brian Picciano
506037dcd0 Moved service tasks internally, main crashes on shutdown though 2023-06-18 15:57:51 +02:00
Brian Picciano
7ea97b2617 Get rid of lifetime on Service 2023-06-18 15:10:06 +02:00
Brian Picciano
1f9ae0038f restructure service module 2023-06-18 14:53:25 +02:00
Brian Picciano
dbc912a9d3 add sync_cert method to domain manager 2023-06-18 14:46:52 +02:00
Brian Picciano
6da68dc042 stop domain manager's inner tasks on shutdown 2023-06-18 14:28:46 +02:00
Brian Picciano
6941ceec8e Remove final Boxed types 2023-06-18 13:53:02 +02:00
Brian Picciano
3d3dfb34ed Got rid of Boxed acme types 2023-06-18 13:44:19 +02:00
Brian Picciano
52f87dc625 Get rid of origin::store::BoxedManager and domain::manager::BoxedManager 2023-06-18 13:12:26 +02:00
Brian Picciano
4317d7f282 Simplify git origin a bit 2023-06-17 16:04:26 +02:00
Brian Picciano
420f1ff42a implement error::unexpected, use it everywhere
This is an improved form of the previous `error::Unexpected` type, now
with more capabilities and generally better naming.
2023-06-17 15:41:39 +02:00
Brian Picciano
42a033a50b Fixes from clippy 2023-06-13 21:36:12 +02:00
Brian Picciano
01b47fb010 Add real logging 2023-06-13 21:33:43 +02:00
Brian Picciano
d93d4accba Added ability to list all domains 2023-05-23 12:32:56 +02:00
Brian Picciano
f7107de96b Fixed crash on unknown cert 2023-05-23 12:15:06 +02:00
Brian Picciano
08b35f6b21 Fix acme challenges not taking priority over origins 2023-05-20 15:24:32 +02:00
Brian Picciano
7d4f754eec Update readme and index 2023-05-20 15:13:48 +02:00
Brian Picciano
9c2bd4e49a cleaned up https parameter handling a bit 2023-05-20 14:51:36 +02:00
Brian Picciano
0fd832efdd clippy suggestions 2023-05-20 14:34:45 +02:00
Brian Picciano
e29de0d29c got HTTPS fully working 2023-05-20 14:29:03 +02:00
Brian Picciano
4f98a9a244 store certs and private keys as generic DER+PEM strings, not using openssl crate 2023-05-19 21:21:34 +02:00
Brian Picciano
209daacf1b save private key generated during acme handshake 2023-05-19 14:16:14 +02:00
Brian Picciano
06cda77772 Periodically refresh certs for all domains 2023-05-19 13:27:00 +02:00
Brian Picciano
5b26396106 change http_domain into a domain::Name 2023-05-19 12:36:01 +02:00
Brian Picciano
4cd5234519 use a FuturesOrdered wait group 2023-05-19 12:29:37 +02:00
Brian Picciano
4e412d0677 Got acme working, syncing for http_domain works 2023-05-19 12:09:41 +02:00