Commit Graph

45 Commits (2a909307230475597ffdf9cff3d4e670572a83db)

Author SHA1 Message Date
_ eb9e8ed38c 🐛 bug: fix documentation ASCII art being treated as Rust code 2021-04-17 17:47:01 -05:00
_ b975e463e8 📝 docs: start writing docs in `cargo doc` format 2021-04-17 14:57:30 -05:00
_ bbb88c01e8 ♻️ Extract ptth_server crate. Docker still broken 2020-11-27 00:50:22 +00:00
_ 4c9595ee2e ♻️ Extract crate ptth_relay 2020-11-27 00:20:18 +00:00
_ 84bb326f37 ♻️ Extract crate ptth_core 2020-11-27 00:03:11 +00:00
_ 64a0d90762 ♻️ Move git_version into relay 2020-11-26 23:53:03 +00:00
_ a6ecb1c6a8 ♻️ Move load_toml into server 2020-11-26 23:51:10 +00:00
_ c4108f6f2f Move the bad passwords code into the server module since the relay doesn't need it 2020-11-26 23:41:32 +00:00
_ 7c2ce65864 ♻️ Extract src/tests.rs 2020-11-26 23:33:10 +00:00
_ 28ce6a32cd 💄 Show servers in the server list even if they aren't connected yet 2020-11-26 23:31:23 +00:00
_ 8369dc8675 Reload relay config every minute 2020-11-25 03:09:21 +00:00
_ b32990a6bb Add asset_root option 2020-11-18 23:24:47 +00:00
_ 63abdc3a16 💄 Show file server name in directory pages 2020-11-10 00:44:21 +00:00
_ 116b3b4900 Marking known issues and wrapping up dev for the night 2020-11-09 00:56:29 +00:00
_ f81d819c31 Flip match_prefix args 2020-11-09 00:56:29 +00:00
_ 02da0ff0fc 🐛 Redirect to add trailing slashes for directories 2020-11-08 17:58:14 +00:00
_ 435232bf6c ♻️ Use a prelude to clean up the unused imports for `tracing` 2020-11-08 16:00:31 +00:00
_ 345fa64ad0 Hide ptth_server.toml with 403 Forbidden 2020-11-08 15:01:15 +00:00
_ 851b895873 🐛 Turns out I had the modules all wrong. This one works good 2020-11-06 18:49:57 +00:00
_ d8010cf33c ♻️ Graceful shutdown is now a oneshot for both relays and servers 2020-11-06 18:49:57 +00:00
_ 7d5a491c98 ♻️ Remove Option<> 2020-11-06 18:49:57 +00:00
_ ec4e0e6335 🐛 Fix graceful shutdown of relay and server in end_to_end test 2020-11-06 18:49:57 +00:00
_ 6b772ad512 ♻️ Remove some unused code 2020-11-06 18:49:57 +00:00
_ 4a1e1a7c23 🐛 Fixes for actual use 2020-11-02 19:17:22 +00:00
_ ad79e4ed3c Add Ctrl-C handler 2020-11-02 18:42:00 +00:00
_ e99ace3ca0 🐳 Add Git version printout when ptth_relay launches 2020-11-02 18:07:34 +00:00
_ 16984ddcd3 Split up the prefixes for frontend and servers so we can separate auth easier 2020-11-02 17:44:04 +00:00
_ 26eb395f18 Move `relay_url` into the server config TOML too 2020-11-02 14:41:22 +00:00
_ 1de6c0aca7 The server will now error out if it detects that its own password is weak 2020-11-02 14:23:08 +00:00
_ 189ae7abd7 🐛 Don't create new rendezvous points for unknown servers.
Also improve error reporting when loading config files
2020-11-02 13:37:08 +00:00
_ c5ecf4bc88 Add another layer in the URI to make room for future features 2020-11-01 22:07:55 -06:00
_ 13117e4237 Add tripcodes for a little security 2020-11-01 21:34:50 -06:00
_ e7edf84282 🐛 Fix rendezvous problem.
Now clients can queue up for a server, which fixes a few things:

- A server can receive multiple requests at once, reducing roundtrip
count in theory
- Clients can wait up to 30 seconds on the relay before the server
is ready for them
- If the server has just left to service a request, the client will
queue instead of seeing the server as absent and giving up
2020-11-01 20:07:46 -06:00
_ 067e240ff4 🚧 I'm gonna try to fix the rendezvous problem 2020-11-01 18:13:12 -06:00
_ 15a62a5e2a 🚧 Trying to fix the issue where clients don't wait on servers 2020-10-31 20:21:53 -05:00
_ 9244953e57 ♻️ Extract load_templates fn for file server 2020-10-31 12:56:36 -05:00
_ dac223efde ♻️ Extract relay_url option 2020-10-30 18:48:44 -05:00
_ 0f092f7213 Test the file server by hashing the AGPL license remotely 2020-10-30 18:36:32 -05:00
_ 5d14155ba3 Start adding some tests 2020-10-30 18:18:42 -05:00
_ 41213f7272 ♻️ Move the server bin into the lib, too 2020-10-30 18:02:57 -05:00
_ 6b5208fdb4 ♻️ Move the relay binary into the lib
what am i doing
2020-10-30 17:57:36 -05:00
_ 07686e693c ♻️ Make sure constants are factored out
They'll become params one day
2020-10-30 17:43:56 -05:00
_ 9f399b0440 ♻️ Extract file_server module 2020-10-30 17:38:23 -05:00
_ 15b18a9335 🚧 2020-10-27 19:43:23 -05:00
_ a8caae68c3 UDP send 2020-10-27 02:00:27 +00:00