Commit graph

49 commits

Author SHA1 Message Date
xenofem c7ceb4113b Keep passwords out of endpoint responses while preserving v1 schema 2022-08-16 16:46:39 -04:00
xenofem aef58d133b make cosmetic changes to state schema, add fileset passwords for forthcoming functionality 2022-08-16 06:16:00 -04:00
xenofem 073feda920 move state to jsondb 2022-08-16 04:54:18 -04:00
xenofem 446c0f0264 cargo fmt 2022-07-05 19:28:25 -04:00
xenofem e05886aac5 give zipped files a containing directory to unzip into 2022-07-05 19:11:01 -04:00
xenofem faf018a0a5 cargo fmt 2022-07-05 16:37:59 -04:00
xenofem 16e7ea4806 add opengraph metadata for preview cards 2022-06-29 20:00:58 -04:00
xenofem 78cd45d68a use askama_actix responders so we get the correct content types/other headers for free 2022-06-16 19:48:10 -04:00
xenofem 56050a65fd make TRANSBEAM_REVERSE_PROXY default to true, safe because it will bind to localhost 2022-05-29 10:54:17 -04:00
xenofem 97f58bbbe3 let uploader set a collection name for a multiple-file upload 2022-05-26 15:42:11 -04:00
xenofem 3125e1f4e7 show file expiry on download page 2022-05-26 15:09:37 -04:00
xenofem 6bf83dcbe6 cargo fmt 2022-05-26 14:56:37 -04:00
xenofem 4f9d46cc28 cachebusting and templating 2022-05-26 14:43:03 -04:00
xenofem 62e6d64253 clippy and fmt 2022-05-24 16:52:00 -04:00
xenofem be4decde12 update download contents as more files become available 2022-05-24 16:49:48 -04:00
xenofem 007289ffe5 allow downloading individual files from bundle 2022-05-24 15:14:31 -04:00
xenofem 43d03869ab fix binding to unspecified addr on v4 and v6 2022-05-23 21:21:57 -04:00
xenofem 463c3d98f5 bind to ipv6 too 2022-05-23 01:00:45 -04:00
xenofem 331a84627a clean up LiveFileReader using ready! macro 2022-05-10 10:13:47 -04:00
xenofem 2d64f0529c remove empty unused file 2022-05-10 10:09:15 -04:00
xenofem 3b974ed6a3 check upload limits beforehand 2022-05-03 19:21:42 -04:00
xenofem 9d87934cf4 add 404 page for incorrect download codes 2022-05-03 18:31:50 -04:00
xenofem eb53030043 refactor config variables, add upload password 2022-05-03 16:28:43 -04:00
xenofem bfe7fcde99 cargo clippy and fmt 2022-05-01 05:28:50 -04:00
xenofem 8275b940ac improve download code UI, tidy up URL structure 2022-05-01 05:11:23 -04:00
xenofem 86bdac20af memorable download codes 2022-05-01 03:28:25 -04:00
xenofem 99b93b4e7d just unwrap on datetime formatting, it should never be an issue and there's no point having an error ready to pass back to the client 2022-05-01 02:22:03 -04:00
xenofem b33bb7aa9d cleanup all the <Uploader as Actor>::Contexts 2022-04-30 16:10:12 -04:00
xenofem e95590ef07 Normalize filenames to Unicode Normal Form D before sanitisation 2022-04-30 15:14:28 -04:00
xenofem 458f791fe3 namespace all our variables 2022-04-30 01:53:21 -04:00
xenofem f52aa0f08b added file expiration and fleshed out the API a bit 2022-04-30 01:38:26 -04:00
xenofem cc0aaaab94 fix weird end-of-file bug by having downloaders use inotify to directly track changes 2022-04-29 22:36:44 -04:00
xenofem 32738e4515 better cleanup of storage state 2022-04-28 06:26:44 -04:00
xenofem fa1917ac17 prevent deserializer from tripping up on positive integers 2022-04-28 05:25:03 -04:00
xenofem bda6da33e8 cargo clippy and fmt 2022-04-28 05:18:35 -04:00
xenofem 127d7e9c67 add persistent state 2022-04-28 05:13:14 -04:00
xenofem cee8c93659 Content-Security-Policy: sandbox for user-submitted files 2022-04-28 01:06:39 -04:00
xenofem 7d8c4f00fa maximum file count 2022-04-28 00:27:22 -04:00
xenofem 55fa969bea zip: set minimum version field back to 4.5
I'm not sure what the deal is, it sounds like the UTF-8 bit flag is
6.3, but linux's zip utilities don't support 6.3 and do support the
bit flag, so *shrug*
2022-04-27 21:58:11 -04:00
xenofem b832ae5a95 zip: set bit flag for UTF-8 filenames, bump minimum zip version to 6.3 2022-04-27 20:31:12 -04:00
xenofem 2ec295e606 implement downloads, lots of misc tweaks/fixes 2022-04-27 20:15:51 -04:00
xenofem f10ee6aa2a zip: go back to saying we're unix, we just forgot to include unix permissions in the external file attributes 2022-04-27 12:47:43 -04:00
xenofem 527f184944 fix type error 2022-04-27 01:31:34 -04:00
xenofem 16913bb079 finish functionality for uploader to receive waker handle messages 2022-04-27 01:17:00 -04:00
xenofem ba3326ef24 cargo fmt 2022-04-27 00:55:36 -04:00
xenofem 779337de5e make static dir and port configurable 2022-04-27 00:53:32 -04:00
xenofem c41430bcdc don't bother trying to make app name configurable actually 2022-04-27 00:44:35 -04:00
xenofem b84cb24ab9 don't say the zipfile was made on unix, it causes trouble with permissions 2022-04-27 00:28:26 -04:00
xenofem 20da86132b WIP file drop server, no downloads yet 2022-04-26 23:54:29 -04:00