Commit Graph

121 Commits (137e8e1bf84679088843f312d7f56168fdb41b8e)

Author SHA1 Message Date
_ 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
_ 49cd292115 🐛 Allowing spaces in server names 2020-11-09 00:56:29 +00:00
_ f81d819c31 Flip match_prefix args 2020-11-09 00:56:29 +00:00
_ 2b93aa8b83 🐛 Implement 416 Range Not Satisfiable
I had a lot of trouble getting AlwaysEqual to compile, so I tested it in a
completely separate crate and vendored it back into PTTH. It's also AGPLv3.
2020-11-09 00:55:45 +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
_ c5691d9d05 🐛 Fix the backlinks from servers up to the relay 2020-11-08 15:53:09 +00:00
_ 345fa64ad0 Hide ptth_server.toml with 403 Forbidden 2020-11-08 15:01:15 +00:00
_ f42068db89 🐛 Fix a bug in the backoff and update todo.
Video streaming and seeking is working pretty well now behind Caddy, but
I'm still seeing some lag when Firefox first starts a request.
2020-11-08 03:16:13 +00:00
_ 5fa0bd8584 ♻️ Remove unused `use` statements 2020-11-08 02:38:27 +00:00
_ 8c7f4684b4 Log request paths 2020-11-08 02:37:11 +00:00
_ 151f236a0b 💄 Tweak a few things and update todo 2020-11-07 23:10:01 +00:00
_ e0b8c8cb58 Add forced shutdown to ptth_relay. 2020-11-07 02:29:45 +00:00
_ 9e134d55aa 🎉 Add forced shutdown fallback to graceful_shutdown module 2020-11-07 02:26:34 +00:00
_ f02e12aecc 🐛 Add forced shutdown to ptth_file_server. 2020-11-07 01:40:29 +00:00