_
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
_
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
_
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
_
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
_
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
_
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
_
e59bb5b7bc
💥 Break relay config again
2020-11-30 15:52:15 +00:00
_
7925d9be95
♻️ Move server endpoints to their own file
2020-11-29 23:24:25 +00:00
_
d6430e39a9
♻️ Get rid of more unwraps and panics
2020-11-29 21:38:23 +00:00
_
7bd2450698
♻️ Fix pedantic clippy warnings
2020-11-29 20:22:40 +00:00
_
c3ff3deb8e
♻️ Fix some clippy warnings
2020-11-29 19:05:28 +00:00
_
47c59447f3
♻️ Splitting tests for file server into their own tests.rs
2020-11-29 18:50:51 +00:00
_
aad7f8e729
♻️ Remove all practically removable unwraps from ptth_relay
2020-11-29 18:39:51 +00:00
_
687cffdf90
♻️ Fixing clippy lints
2020-11-29 18:37:33 +00:00
_
5c0d7ea998
♻️ Removing unwraps
2020-11-29 17:09:25 +00:00
_
bf96d400b2
♻️ Removing unwraps
2020-11-29 17:09:19 +00:00
_
4c9595ee2e
♻️ Extract crate ptth_relay
2020-11-27 00:20:18 +00:00