ptth/crates/ptth_server
_ 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
..
src guess MIME for JavaScript files so that `ptth_file_server` can serve Jet Racing 4 locally. 2021-10-02 20:03:03 +00:00
test ♻️ Extract ptth_server crate. Docker still broken 2020-11-27 00:50:22 +00:00
Cargo.toml use rust_embed and default configs so you can call `ptth_file_server` from any working dir. 2021-10-02 19:49:19 +00:00
README.md 📝 docs: update README before publishing to crates.io 2021-04-18 12:56:36 -05:00

README.md

PTTH Server

The PTTH server is an HTTP server that can serve files from behind a firewall, because it only makes outgoing HTTP connections to a PTTH relay.

View from outside the PTTH tunnel:

* HTTP client
|
|   HTTP(S) requests
V
* ptth_relay
^
|   HTTP(S) requests
|
* ptth_server

View from inside the PTTH tunnel:

* HTTP client
|
|   HTTP(S) requests
V
* ptth_relay
|
|   HTTP(S) requests
V
* ptth_server