This role clones the [Onionspray](https://community.torproject.org/onion-services/ecosystem/apps/web/onionspray/) repo and builds from source the necessary software (OpenResty with the Nginx [http_substitutions_filter](https://github.com/yaoweibin/ngx_http_substitutions_filter_module) module, OnionBalance, Tor).
This role clones the [Onionspray](https://onionservices.torproject.org/apps/web/onionspray/) repo and builds from source the necessary software (OpenResty with the Nginx [http_substitutions_filter](https://github.com/yaoweibin/ngx_http_substitutions_filter_module) module, OnionBalance, Tor).
The role first generates the configuration files needed to serve a website. The build is then done by the `opt/build-DISTRO.sh` script inside the Onionspray repo, executed by this role, depending on the distribution of your server and if supported.
# setting these two options expose a header named "X-Onion-CircuitID" with a unique ID per Tor user
@@ -148,6 +148,6 @@ Many thanks to [Mediapart](https://www.mediapart.fr) for which this role has bee
## References
* The Onionspray documentation: [quickstart guide](https://community.torproject.org/onion-services/ecosystem/apps/web/onionspray/tutorial/), [troubleshooting](https://community.torproject.org/onion-services/ecosystem/apps/web/onionspray/guides/troubleshooting/) sections mainly.
* The Onionspray documentation: [quickstart guide](https://onionservices.torproject.org/apps/web/onionspray/tutorial/), [troubleshooting](https://onionservices.torproject.org/apps/web/onionspray/guides/troubleshooting/) sections mainly.
* Great blogpost: [A Complete Guide to EOTK](https://shen.hong.io/making-websites-on-tor-using-eotk/)
* Another great blogpost: [ProPublica's experience with EOTK](https://www.propublica.org/nerds/a-more-secure-and-anonymous-propublica-using-tor-hidden-services)