Commit Graph

135 Commits (3054991c5e9d7389a88758c7b62948154d36e8b4)

Author SHA1 Message Date
_ c361ecd806 ♻️ refactor: extract builder for Relay 2021-04-27 15:05:27 -05:00
_ 4a73f48c68 tests: fix tests 2021-04-27 14:31:32 -05:00
_ 146c91f2be ♻️ refactor: rename `RelayState` to `Relay` and privatize `load_templates` 2021-04-18 08:28:07 -05:00
_ 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
_ ee1db02b08 ♻️ refactor: use constructor for ConfigFile 2021-03-21 02:49:44 +00:00
_ 13c1ddc01a 🐛 bug: fix tests not compiling 2021-03-15 19:29:54 +00:00
_ 9648a9853c wip: debug proxy now owns a filter which can drop or modify request bodies 2021-03-06 22:58:23 +00:00
_ a980d151fc ⬆️ deps: upgrade everything to Tokio 1.2.0
And pretend I didn't completely goober the Docker build somehow
2021-03-06 21:46:35 +00:00
_ 1e42110ae1 ♻️ refactor: extract basic client tests 2021-03-06 19:36:37 +00:00
_ 4838a99288 ♻️ refactor: end_to_end test now uses TestingRelay and TestingServer 2021-03-06 19:30:05 +00:00
_ 8b845b55da ♻️ refactor: extract TestingServer 2021-03-06 19:25:24 +00:00
_ 221732a616 ♻️ refactor: extract TestingRelay 2021-03-06 19:17:42 +00:00
_ 4aa54c32d0 test: add a test that uses debug_proxy 2021-03-06 18:55:05 +00:00
_ 9ac44cfeb7 new: finish MVP for scraper auth.
Adding a SQLite DB to properly track the keys is going to take a while. For
now I'll just keep them in the config file and give them 30-day expirations.
2020-12-16 14:46:03 +00:00
_ 11f4b0e65b test: Fix tests broken by recent commits 2020-12-14 14:17:52 +00:00
_ e865ac56c7 🚨 refactor: fix some clippy / cargo check warnings 2020-12-13 20:05:52 -06:00
_ 9c7b2b7a86 test: add tests for scraper API test endpoint 2020-12-13 04:44:37 +00:00
_ 0737edd8f8 👕 refactor: move handlebars out of RelayState
This will make it simpler to separate logic and presentation.
2020-12-13 04:03:30 +00:00
_ 670ce30667 test: add end-to-end test for scraper API 2020-12-13 01:55:47 +00:00
_ 0eb1e7e38f new: add code for scraper keys to expire and have limited durations 2020-12-12 17:11:22 +00:00
_ b43106393a 👕 refactor (ptth_relay): use the new blake3 deserializer 2020-12-12 15:50:38 +00:00
_ f6486b2c1a 🔧 config (ptth_relay): add feature flags
- dev mode
- scraper auth

These will gate features I'm adding soon.
2020-12-12 01:26:58 +00:00
_ c4b12eb806 🏁 Builds on Windows. 2020-12-10 06:24:56 +00:00
_ b40eda4a69 🐛 Fix tests 2020-11-30 15:55:14 +00:00
_ d6430e39a9 ♻️ Get rid of more unwraps and panics 2020-11-29 21:38:23 +00:00
_ bf96d400b2 ♻️ Removing unwraps 2020-11-29 17:09:19 +00: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
_ bf4e5c7a5b ♻️ Planning changes to relay config 2020-11-26 21:50:55 +00:00
_ 8369dc8675 Reload relay config every minute 2020-11-25 03:09:21 +00:00
_ b40233cc62 ♻️ Wrap relay config in a RwLock 2020-11-25 02:30:57 +00:00
_ 7aafbba4d9 Add "last seen" to server list 2020-11-25 02:17:08 +00:00
_ a3e76cf120 ♻️ Clippy pass 2020-11-25 00:16:14 +00:00
_ bfe07fddc3 Add "--print-tripcode" option to ptth_server 2020-11-24 23:57:17 +00:00
_ 5378e66e39 🐛 Use file permissions to forbid access to ptth_server.toml 2020-11-19 01:45:42 +00:00
_ b32990a6bb Add asset_root option 2020-11-18 23:24:47 +00:00
_ 3293b3e7f9 Add config_path command-line option 2020-11-18 22:51:02 +00:00
_ b333b56e80 Make Markdown previews sans-serif on principle 2020-11-10 03:01:00 +00:00
_ ff6e841e0b Markdown preview added to the standalone server, not linked in yet 2020-11-10 02:39:20 +00:00
_ 13b816fd6e ♻️ Adding space for a Markdown preview 2020-11-10 01:02:59 +00:00
_ 63abdc3a16 💄 Show file server name in directory pages 2020-11-10 00:44:21 +00:00
_ 9714794122 Add trace log for streaming files 2020-11-09 16:33:13 +00:00
_ 116b3b4900 Marking known issues and wrapping up dev for the night 2020-11-09 00:56:29 +00:00