_
68932e00de
Merge remote-tracking branch 'external/main'
2022-05-26 01:00:02 +00:00
_
820c5aeef4
✅ bring tests up to date
...
I definitely remember doing this already. I must have left the changes on
my home PC.
2022-04-22 11:37:20 -05:00
_
da581f452d
➖ remove that stupid bad passwords file
2022-04-20 12:31:35 +00:00
_
c2299ab39a
✅ fix up the tests
2022-04-20 12:25:44 +00:00
Trisha
fb9b0c67f5
➕ add multi-root
2022-03-25 16:14:22 -05:00
Trisha
436adb98ef
🚧 swich to the new routing func
2022-03-25 16:04:51 -05:00
Trisha
de5338f4f2
♻️ refactor: extract routing func
2022-03-25 15:47:34 -05:00
Trisha
e6273209f9
🚧 wip: threading the multi-root stuff into the file server module
2022-03-25 15:40:36 -05:00
_
2656d16264
♻️ refactor: extract `http_listen` fn
2022-02-05 16:52:56 +00:00
_
d96bf801c6
🔇 make logs quieter
2022-02-05 15:57:40 +00:00
_
3a2147d50f
use `MissedTickBehavior::Skip` on all intervals
2021-07-18 17:43:58 +00:00
_
6f45f5105e
➖ remove `heim` dependency
...
It doesn't work on Android, and I can't fault it for that (Platform difference)
but it also drags in `uom` which has a bunch of template magic that takes
forever to compile, and I'm pretty sure it's dragging down my compile times.
I tried to build `ptth_server` on nightly to get compile timings, and heim
depends on `socket2` which failed to compile.
And I never ended up using the CPU monitoring. So heim is gone now.
2021-07-11 12:17:36 +00:00
_
810a34463c
♻️ refactor: get rid of mod.rs
2021-04-29 23:03:01 +00:00
_
fd238d8c2b
♻️ refactor: rename file_server::State to file_server::FileServer
2021-04-17 19:10:52 -05:00
_
ae33337156
♻️ refactor: clean up ptth_server
...
- Found I was passing the file server root twice
- Removed handlebars from the public API. The templates are fixed
when ptth_server ships, so I don't think users of the lib should
care what handlebars is.
- Making other stuff private where possible
2021-04-17 18:59:59 -05:00
_
86af3194e5
💥 breaking: remove password_is_bad from ptth_server
...
The password checking is not necessary with the new process of generating
high-entropy Base64 passwords and then approving them on the relay.
The password file takes a lot of space and this doesn't need to be part
of ptth_server's public API, if there is one, anyway.
2021-04-17 17:47:01 -05:00
_
d16b0c4c61
🚨 `cargo check` pass
2021-04-10 09:41:21 -05:00
_
d9669a7073
proof of concept for private browser cache based on etag and if-none-match
2021-04-03 17:26:53 +00:00
_
1df0f0f677
♻️ refactor: extract stream_file
2021-04-03 16:27:31 +00:00
_
ff73f501a4
🚧
2021-04-03 16:21:59 +00:00
_
3389292457
placeholder for caching - Always returns a random ETag header.
...
So the browser-side cache will always miss, but I tested that Firefox will at
least send us If-None-Match with the last ETag it saw.
2021-04-03 15:53:59 +00:00
_
6e24983ad7
🚨 refactor: cargo clippy
2021-04-03 15:30:32 +00:00
_
0821ccaac6
♻️ refactor: move Markdown support in ptth_server out to a feature.
...
It may be removed in the future.
2021-04-03 15:17:28 +00:00
_
e5bf5f7d1f
♻️ refactor: flatten out indentation
2021-04-03 14:27:17 +00:00
_
235e134cb2
♻️ refactor: more clippy lints, and make read_git_version simpler
2021-03-21 03:45:00 +00:00
_
50fc509c8b
🚨 fix a bunch of easy clippy warnings
2021-03-21 03:34:47 +00:00
_
820099c2ca
⬆️ deps: replace ulid with rusty_ulid so I can drop rand 0.6.x
2021-03-21 03:09:44 +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
_
cbf5583d06
update: tracing RSS MiB
2020-12-20 20:41:02 -06:00
_
e79925dc14
update: ptth_server metrics are at a stopping point for now
2020-12-20 18:09:24 -06:00
_
eec17b10a1
update: switch back to 60-second interval
2020-12-20 17:34:55 -06:00
_
bcc673b74b
♻️ refactor: extract metrics monitor function and add it to ptth_server
2020-12-20 17:32:13 -06:00
_
f335644b03
➕ update: measuring CPU usage every minute
2020-12-20 17:17:31 -06:00
_
1e5aa528c9
🚧 wip: collecting CPU time used.
2020-12-20 20:10:29 +00:00
_
96106e68fc
♻️ refactor: use file_server::State directly more
2020-12-20 19:55:20 +00:00
_
4cb0911b77
➕ update: add RSS MiB to server root page
2020-12-20 19:46:30 +00:00
_
e5103d48bd
➕ update: add ArcSwap to update gauges lock-free
2020-12-20 19:35:32 +00:00
_
b2b0bbc8fc
♻️ refactor: rename
2020-12-20 19:00:22 +00:00
_
64ac4baaa8
➕ update: print RSS in MiB at startup
2020-12-20 18:58:14 +00:00
_
bc361fa876
➕ update: add heim for measuring process RSS
2020-12-20 18:52:53 +00:00
_
47788f56e0
♻️ refactor: use `use X as Y`
2020-12-20 18:40:49 +00:00
_
066c95dc07
♻️ refactor: extract html.rs
2020-12-20 18:38:39 +00:00
_
4bd38180d0
♻️ refactor: remove lifetime on handlebars
2020-12-20 18:23:17 +00:00
_
1aff4389bd
♻️ refactor: move file server runtime state into file_server
2020-12-20 18:10:11 +00:00
_
009601e136
♻️ refactor: move file server config into file_server
2020-12-20 18:04:19 +00:00
_
e8d94da661
♻️ refactor: change PerInstance to Startup
2020-12-20 17:44:03 +00:00
_
d052f42507
🚧 wip: add placeholder for gauges
2020-12-20 17:41:00 +00:00
_
b54be58abc
🚨 refactor: rename InstanceMetrics to PerInstance
2020-12-18 23:45:30 +00:00
_
72b3b33206
🚨 refactor: fix some Clippy lints
2020-12-18 23:41:52 +00:00
_
d03c1a5476
➕ update: add InstanceMetrics and replace ServerInfo
2020-12-18 20:43:34 +00:00