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  
				
					
						
							
							
								 
						
							
							
								c47ab6d282 
								
							
								 
							
						 
						
							
							
								
								🚧  wip: messing with cache parameters  
							
							
							
						 
						
							2022-01-09 00:22:16 +00:00  
				
					
						
							
							
								 
						
							
							
								b642142332 
								
							
								 
							
						 
						
							
							
								
								🐛  bug: fix content length when byte serving  
							
							
							
						 
						
							2021-11-13 21:31:30 -06:00  
				
					
						
							
							
								 
						
							
							
								16aaac0965 
								
							
								 
							
						 
						
							
							
								
								🐛  bug: used the wrong PathBuf function in resolving the merge  
							
							
							
						 
						
							2021-10-14 18:51:12 -05:00  
				
					
						
							
							
								 
						
							
							
								134035f198 
								
							
								 
							
						 
						
							
							
								
								Merge remote-tracking branch 'origin/main'  
							
							
							
						 
						
							2021-10-14 18:35:31 -05:00  
				
					
						
							
							
								 
						
							
							
								1a775622cf 
								
							
								 
							
						 
						
							
							
								
								🐛  bug: fix compile bugs for tests  
							
							
							
						 
						
							2021-10-10 18:24:35 +00:00  
				
					
						
							
							
								 
						
							
							
								b21f8a7c50 
								
							
								 
							
						 
						
							
							
								
								♻️  refactor: move `main` up  
							
							
							
						 
						
							2021-10-10 18:20:08 +00:00  
				
					
						
							
							
								 
						
							
							
								98b43d1ba2 
								
							
								 
							
						 
						
							
							
								
								guess MIME for JavaScript files so that `ptth_file_server` can serve Jet Racing 4 locally.  
							
							... 
							
							
							
							Firfox has a bunch of odd security features that I only sometimes understand.
Among them is that it won't load JS files without the `content-type` header,
and it also disables a lot of features for the `file://` scheme. Which I think
is a shame. There's probably a good reason they do this, but I'm not aware of one.
So now you can use PTTH's file server to host Jet Racing 4. 
							
						 
						
							2021-10-02 20:03:03 +00:00  
				
					
						
							
							
								 
						
							
							
								2972e85671 
								
							
								 
							
						 
						
							
							
								
								➕  use rust_embed and default configs so you can call `ptth_file_server` from any working dir.  
							
							... 
							
							
							
							This is like Python's old `-m SimpleHTTPServer` but better because I wrote it. 
							
						 
						
							2021-10-02 19:49:19 +00:00  
				
					
						
							
							
								 
						
							
							
								f7b78b8a12 
								
							
								 
							
						 
						
							
							
								
								⬆️  update to blake3 1.0.0 to de-dupe the cfg-if depend  
							
							
							
						 
						
							2021-10-02 19:13:46 +00:00  
				
					
						
							
							
								 
						
							
							
								b8d07c526a 
								
							
								 
							
						 
						
							
							
								
								➕  add ptth_file_server to ptth_multi_call_server.  
							
							... 
							
							
							
							Even with all 3 servers it's only 18 MB - Most of the big code is shared. 
							
						 
						
							2021-10-02 19:07:55 +00:00  
				
					
						
							
							
								 
						
							
							
								4911a37887 
								
							
								 
							
						 
						
							
							
								
								add ptth_file_server depend to ptth_multi_call_server  
							
							
							
						 
						
							2021-10-02 19:00:13 +00:00  
				
					
						
							
							
								 
						
							
							
								4c79af3f4b 
								
							
								 
							
						 
						
							
							
								
								♻️  refactor: clean up `.exe` handling and add a place for `ptth_file_server`  
							
							
							
						 
						
							2021-10-02 18:58:27 +00:00  
				
					
						
							
							
								 
						
							
							
								4329562aa3 
								
							
								 
							
						 
						
							
							
								
								✅  refactor and test the multi-call code  
							
							
							
						 
						
							2021-10-02 18:47:10 +00:00  
				
					
						
							
							
								 
						
							
							
								f44613540e 
								
							
								 
							
						 
						
							
							
								
								➕  add the multi-call server  
							
							... 
							
							
							
							This exe can act as both a PTTH and PTTH_QUIC end server.
It's only 17 MB, which is a big improvement over the 15 + 15 for shipping both servers as their own exes 
							
						 
						
							2021-10-02 18:13:14 +00:00  
				
					
						
							
							
								 
						
							
							
								30f8bbb0aa 
								
							
								 
							
						 
						
							
							
								
								♻️  refactor inject CLI args instead of reading them in main  
							
							
							
						 
						
							2021-10-02 17:31:06 +00:00  
				
					
						
							
							
								 
						
							
							
								0b10737403 
								
							
								 
							
						 
						
							
							
								
								♻️  refactor: move ptth_server's main into its library so I can make a busybox-style multi-use binary  
							
							
							
						 
						
							2021-10-02 17:26:56 +00:00  
				
					
						
							
							
								 
						
							
							
								1abf1d194c 
								
							
								 
							
						 
						
							
							
								
								🚧  maybe HTTP Basic Auth?  
							
							
							
						 
						
							2021-08-29 20:56:32 -05:00  
				
					
						
							
							
								 
						
							
							
								5376e8bba0 
								
							
								 
							
						 
						
							
							
								
								🚧  wip: add placeholder for client tokens  
							
							
							
						 
						
							2021-08-29 20:17:25 -05:00  
				
					
						
							
							
								 
						
							
							
								324c1f7cd6 
								
							
								 
							
						 
						
							
							
								
								♻️  refactor: remove pointless `Option <>` for file server root  
							
							
							
						 
						
							2021-08-29 19:49:32 -05:00  
				
					
						
							
							
								 
						
							
							
								228a9b4262 
								
							
								 
							
						 
						
							
							
								
								🔊  scraper GETs have their own type of audit event now  
							
							
							
						 
						
							2021-08-27 20:28:34 -05:00  
				
					
						
							
							
								 
						
							
							
								a454585d9c 
								
							
								 
							
						 
						
							
							
								
								📝  document how scraper keys work  
							
							
							
						 
						
							2021-08-27 20:17:59 -05:00  
				
					
						
							
							
								 
						
							
							
								caaed8a5e1 
								
							
								 
							
						 
						
							
							
								
								remove 30-day limit on scraper keys  
							
							
							
						 
						
							2021-08-27 18:34:38 -05:00  
				
					
						
							
							
								 
						
							
							
								918ea8c778 
								
							
								 
							
						 
						
							
							
								
								🔊  log error on URL routing failures  
							
							
							
						 
						
							2021-07-27 03:17:26 +00:00  
				
					
						
							
							
								 
						
							
							
								9b60acf0e0 
								
							
								 
							
						 
						
							
							
								
								📝  remove Github repo from Cargo.tomls. PTTH is no longer on my Github  
							
							
							
						 
						
							2021-07-18 17:44:07 +00:00  
				
					
						
							
							
								 
						
							
							
								3a2147d50f 
								
							
								 
							
						 
						
							
							
								
								use `MissedTickBehavior::Skip` on all intervals  
							
							
							
						 
						
							2021-07-18 17:43:58 +00:00  
				
					
						
							
							
								 
						
							
							
								d8c6e1bd14 
								
							
								 
							
						 
						
							
							
								
								⬆️  update to Tokio 1.8.x to get a feature I want  
							
							
							
						 
						
							2021-07-18 17:33:34 +00:00  
				
					
						
							
							
								 
						
							
							
								d292693856 
								
							
								 
							
						 
						
							
							
								
								⬆️  update rmp-serde to 0.15.5 and add it to ptth_quic  
							
							
							
						 
						
							2021-07-18 17:19:05 +00:00  
				
					
						
							
							
								 
						
							
							
								0fe8c64c4f 
								
							
								 
							
						 
						
							
							
								
								➖  remove old port forwarding prototypes  
							
							... 
							
							
							
							ptth_quic is simpler and better 
							
						 
						
							2021-07-18 09:20:33 -05:00  
				
					
						
							
							
								 
						
							
							
								02b6955a50 
								
							
								 
							
						 
						
							
							
								
								🐛  bug: allow `auto-gen-key` to also recreate the file and fix permissions  
							
							
							
						 
						
							2021-07-13 16:02:49 -05:00  
				
					
						
							
							
								 
						
							
							
								e21ba78fa5 
								
							
								 
							
						 
						
							
							
								
								GUI is working well now  
							
							
							
						 
						
							2021-07-12 01:01:47 +00:00  
				
					
						
							
							
								 
						
							
							
								ef27c0443d 
								
							
								 
							
						 
						
							
							
								
								♻️  refactor: use FLTK's event loop to simplify  
							
							
							
						 
						
							2021-07-11 23:57:18 +00:00  
				
					
						
							
							
								 
						
							
							
								04975ee6c0 
								
							
								 
							
						 
						
							
							
								
								just disable Ctrl+C graceful shutdown in the GUI for now  
							
							
							
						 
						
							2021-07-11 23:33:47 +00:00  
				
					
						
							
							
								 
						
							
							
								41d5b896a9 
								
							
								 
							
						 
						
							
							
								
								🐛  bug: the GUI can now restart `ptth_server` properly  
							
							
							
						 
						
							2021-07-11 18:56:23 +00:00  
				
					
						
							
							
								 
						
							
							
								0d3b402050 
								
							
								 
							
						 
						
							
							
								
								➕  add prototype FLTK GUI for ptth_server  
							
							... 
							
							
							
							Right now it can only start and stop the server once, due to a known
bug. Eventually I'd like it to be a user-friendly GUI with all the
required config files and maybe a folder browser so you can pick
which folder(s) are served. 
							
						 
						
							2021-07-11 10:59:48 -05:00  
				
					
						
							
							
								 
						
							
							
								2f2e4ef64d 
								
							
								 
							
						 
						
							
							
								
								📝  document how to run `ptth_server`  
							
							... 
							
							
							
							This commit also works well on Termux on Android. 
							
						 
						
							2021-07-11 13:12:32 +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  
				
					
						
							
							
								 
						
							
							
								277c00b753 
								
							
								 
							
						 
						
							
							
								
								switch to rustls  
							
							
							
						 
						
							2021-07-11 11:53:41 +00:00  
				
					
						
							
							
								 
						
							
							
								bccc9bce53 
								
							
								 
							
						 
						
							
							
								
								set default-run key for ptth_server  
							
							
							
						 
						
							2021-07-11 11:38:46 +00:00  
				
					
						
							
							
								 
						
							
							
								429d1cc957 
								
							
								 
							
						 
						
							
							
								
								🐛  bug: don't leak request IDs in the audit log  
							
							
							
						 
						
							2021-07-11 10:56:40 +00:00  
				
					
						
							
							
								 
						
							
							
								5db72be1bc 
								
							
								 
							
						 
						
							
							
								
								tell the relay our server name when we serve responses  
							
							... 
							
							
							
							This is needed for a future refactor of the relay. 
							
						 
						
							2021-07-10 22:17:32 +00:00  
				
					
						
							
							
								 
						
							
							
								0f7c95f79f 
								
							
								 
							
						 
						
							
							
								
								should be possible to POST to servers now  
							
							
							
						 
						
							2021-05-15 17:50:43 +00:00  
				
					
						
							
							
								 
						
							
							
								af958ac43d 
								
							
								 
							
						 
						
							
							
								
								🚧  compiles but probably doesn't work  
							
							
							
						 
						
							2021-05-15 17:25:13 +00:00  
				
					
						
							
							
								 
						
							
							
								6c34a1ef37 
								
							
								 
							
						 
						
							
							
								
								♻️  refactor: prepare to allow POSTing to servers  
							
							
							
						 
						
							2021-05-15 17:14:12 +00:00  
				
					
						
							
							
								 
						
							
							
								b018f16794 
								
							
								 
							
						 
						
							
							
								
								♻️  refactor: custom servers won't create a file server module.  
							
							
							
						 
						
							2021-05-09 19:54:09 +00:00  
				
					
						
							
							
								 
						
							
							
								6c826b0cc5 
								
							
								 
							
						 
						
							
							
								
								ptth_server v2.1.0 will allow custom servers with a user-supplied request handler  
							
							
							
						 
						
							2021-05-09 19:40:19 +00:00  
				
					
						
							
							
								 
						
							
							
								08009de043 
								
							
								 
							
						 
						
							
							
								
								🚧  it works!  
							
							
							
						 
						
							2021-05-09 18:32:24 +00:00  
				
					
						
							
							
								 
						
							
							
								c663d126aa 
								
							
								 
							
						 
						
							
							
								
								♻️  refactor: moving things around to support third-party ptth_server modules  
							
							
							
						 
						
							2021-05-09 17:54:29 +00:00  
				
					
						
							
							
								 
						
							
							
								93bf38ec03 
								
							
								 
							
						 
						
							
							
								
								🚨  clippy pass  
							
							
							
						 
						
							2021-05-02 22:32:24 +00:00