Commit Graph

370 Commits (3408feb6194620007e0de80af90a87e842785d33)

Author SHA1 Message Date
_ d03c1a5476 update: add InstanceMetrics and replace ServerInfo 2020-12-18 20:43:34 +00:00
_ 7a47c705d7 update: add a few other assets from the logo 2020-12-18 18:10:00 +00:00
_ 25d22a16e0 💄 update: add base64 favicons and WIP dark mode 2020-12-18 18:08:17 +00:00
_ 1cf3ff5313 💄 update: add logo and favicon 2020-12-18 17:03:24 +00:00
_ c70f44f4e4 📝 docs: update todo 2020-12-18 17:03:24 +00:00
_ 626946b7b7 🔉 update: demote some boring logs from debug to trace 2020-12-16 19:06:15 -06:00
Trisha 3bc8323cc8 📝 docs: update example curl commands 2020-12-16 10:33:03 -06:00
_ 1e160ec55b new: add subcommand in ptth_relay to hash API keys from the terminal 2020-12-16 14:57:47 +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
_ cda627fa4b new: add JSON API in server for dir listings 2020-12-15 05:15:17 +00:00
_ 11f4b0e65b test: Fix tests broken by recent commits 2020-12-14 14:17:52 +00:00
_ cdc890ad89 📝 docs: update scraper auth todo 2020-12-14 01:08:00 -06:00
_ fa5aa8b05a 🚧 wip: add server list API endpoint 2020-12-14 01:07:13 -06:00
_ e865ac56c7 🚨 refactor: fix some clippy / cargo check warnings 2020-12-13 20:05:52 -06:00
_ 78bffc74c3 📝 docs: plan remaining tasks on scraper API 2020-12-13 05:04:04 +00:00
_ 4c52d88be0 📝 docs: check off todo for scraper API 2020-12-13 04:56:43 +00:00
_ 5d1b68dc90 📜 logging: don't log handlebars object 2020-12-13 04:47:47 +00: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
_ 32e48697d5 👕 refactor: extract scraper_api module 2020-12-13 03:42:00 +00:00
_ 5f947ed73c 👕 refactor: Extract relay_state module 2020-12-13 03:29:54 +00:00
_ 532f99f770 💄 update: add dev mode and server Git version to server list 2020-12-13 03:00:45 +00:00
_ 0e4839e146 🐳 build: add Tini to Docker image, simplify Git version injection
Building the Git version into the code meant that Cargo had to recompile
ptth_relay every time I built. This is annoying and it doesn't add anything.

I changed it to read the Git version from a text file which is absent by
default, and present in the Docker image.
2020-12-13 02:20:12 +00:00
_ dc2958ad7a 📝 docs: add todo 2020-12-13 01:55:47 +00:00
_ 670ce30667 test: add end-to-end test for scraper API 2020-12-13 01:55:47 +00:00
_ 1e81421444 👕 refactor: Extract functions for scraper API endpoints 2020-12-13 01:12:56 +00:00
_ 622895f77d 📝 docs: update readme, which was out of date 2020-12-12 18:19:51 +00:00
_ ca6f281351 📝 docs: add glossary section 2020-12-12 18:06:49 +00:00
_ 6d68a77364 new (ptth_relay): add test endpoint for scrapers
Scrapers can auth using a shared (but hashed) API key.
The hash of the key is specified in ptth_relay.toml, and forces dev mode on.
2020-12-12 17:50:40 +00:00
_ 6961fde7dc 📝 docs: update plan 2020-12-12 17:14:10 +00:00
_ 004b98229a 🐛 bug: fix serde expecting phantom data in the config file 2020-12-12 17:12:38 +00:00
_ 0eb1e7e38f new: add code for scraper keys to expire and have limited durations 2020-12-12 17:11:22 +00:00
_ bf8e483d16 👕 refactor: merge the servers' config file and runtime representations 2020-12-12 15:57:22 +00:00
_ b43106393a 👕 refactor (ptth_relay): use the new blake3 deserializer 2020-12-12 15:50:38 +00:00
_ 9bc4b57058 new (ptth_relay): add serde deserializer for blake3 hashes 2020-12-12 15:35:33 +00:00
_ cc96af6110 📝 docs: improve plan for scraper keys 2020-12-12 15:10:14 +00:00
_ 6861560274 📝 docs: update todo.md 2020-12-12 15:07:45 +00:00
_ 31626844ca ⬆️ deps: cargo update 2020-12-12 05:31:29 +00:00
_ 1c798afdf0 📦 build (ptth_relay): update ID of bottom layer that we minimize out 2020-12-12 05:23:23 +00:00
_ 8e171fbf08 ⬆️ deps (ptth_relay): update Docker build to Rust 1.48 and latest Buster 2020-12-12 05:18:29 +00:00
_ 0c5a37b441 🐳 build (ptth_relay): clean up Docker build process
The new method is much nicer and doesn't require the manual make-old-git
step. The top-level command is actually build_and_minimize.bash, which uses
`git archive` to unpack the last Git commit and build with _that_ Dockerfile
and Docker context. This is better for determinism. It's similar to our build
process for that one big project at work.
2020-12-12 05:08:58 +00:00
_ 951fe27b5f update (build scripts): remove old build.bash
It was one line and wasn't used
2020-12-12 01:35:47 +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
_ 4014290f98 📝 docs (YNQAQKJS) add plan for 3rd auth route 2020-12-11 21:04:59 +00:00
_ c4b12eb806 🏁 Builds on Windows. 2020-12-10 06:24:56 +00:00
_ 865bd1f01f 🚧 Can't remember what I was working on here 2020-12-10 05:49:23 +00:00
_ 4cbb4b72ca 🚧 🐳 Experimenting with a new Dockerfile 2020-12-01 14:47:55 +00:00
_ e8c020fbc6 Update --print-tripcode option 2020-11-30 16:15:27 +00:00
_ bbeb406032 Removed unused dep 2020-11-30 16:15:22 +00:00
_ 00c29a6464 :docker: Fix Dockerfile again 2020-11-30 15:57:14 +00:00