tornadocash/tornado-relayer

Deployment as hidden service

DonnyPerni opened this issue · 11 comments

I'm trying to test a relayer as hidden service and I found few problems:

Those two line:

# depends_on: [mainnet]

# REDIRECT: mainnet:8000

should change mainnet with server.

It should be more clear that if you want to run it as hidden service you do not need nginx and letsencrypt (and probably dockergen but I'm not sure of what it does).

Moreover the web UI should not enforce https for .onion's relayers

poma commented

Fixed

p.s. dockergen container generates dynamic configs for nginx, this is how VIRTUAL_HOST env var works

Thank you, but I think that the front end is still using https to make the connections with the .onion relayer.

Is there a place where I can find the front end source code to understand how it works?

poma commented

Yes ui fix is in progress

Hi @poma and @DonnyPerni Thanks for fixing the https and .onion issue, I was wondering if there is a way to track when this change gets into mainline. I have a goerli relayer that I want to test as soon as the UI fix has been merged, thanks!

poma commented

UI fix is deployed

@poma in which repo did you do the change? I just tried on the goerli network with my Tor node and it is not working. But I cannot tell if it my node that does not work or if I am not using your change.

Actually I can test my node using Tor browser and I can see it works, so it seems the Tornado UI is still not working with .onion addresses

Screenshot from 2021-01-07 23-19-05

This is on the goerli testnet and I am using this URL https://app.tornado.cash/

When I run the relay service I can see it works

Screenshot from 2021-01-07 23-23-06

Screenshot_20210108_181054

It fetch the data correctly to me on TOR Browser,I guess you are using the TOR page with Brave, because I tried with that and I got the same error:

Screenshot_20210108_181915

This error is the cause of the problem:

Screenshot_20210108_181935

If I got it right it's because chromium (brave is based on that) block the http request if you are on a https website, I tried using http to connect to the app.tornado.cash and it works:

Screenshot_20210108_182401

P.S. I think that the source code of web page is not public, and I think one proposal of the new DAO could be to make the front end open-source

Sweet it works for me too on the Tor Browser, Thanks @DonnyPerni

poma commented

The UI can also run as an .onion service, there is a description how to do that in minified UI repo. But it has to be hosted by someone from the community because tornado cash team cannot run any servers for legal reasons. Although in this case there is a problem of how to verify that this hosted version is not maliciously modified. Maybe if some high profile community member hosts it and vouches with his reputation.

@poma I see this marked as resolved, however I still can't setup it as a .onion domain to work in chrome. (even forcing on http:// version)

Should this work in chrome, or only TOR?