I added a Tor hidden service to my WooCommerce site today, to provide a safer experience for folks who use Tor. I also made my BTC Instance reachable over Tor (different hidden service).
This presents a problem, because I need to direct clear-web folks to the regular BTCPay URL and Tor users to the hidden service. I hacked together a "solution" that basically checks if ONION_DOMAIN is set and then modifies the checkout link: Sjors@4e567a6
It might be nicer if the admin panel had a second onion URL field.
There's not really a standard way for users to configure WordPress to run an onion service. I used the approach here, which isn't super elegant. Pending such a convention, the instruction could simply state that ONION_DOMAIN must be set.
I added a Tor hidden service to my WooCommerce site today, to provide a safer experience for folks who use Tor. I also made my BTC Instance reachable over Tor (different hidden service).
This presents a problem, because I need to direct clear-web folks to the regular BTCPay URL and Tor users to the hidden service. I hacked together a "solution" that basically checks if
ONION_DOMAINis set and then modifies the checkout link: Sjors@4e567a6It might be nicer if the admin panel had a second onion URL field.
There's not really a standard way for users to configure WordPress to run an onion service. I used the approach here, which isn't super elegant. Pending such a convention, the instruction could simply state that
ONION_DOMAINmust be set.