Dominio onion TOR per Discourse

Hello,

we are having some issues for users to connect to our discourse instance through TOR. Many times, a “Unable to connect” message appears and you have to change several times your identity to connect. We have checked with our upstream hosting provider and they say they dont block tor traffic so we are trying to figure out what it could be. We have generated an onion domain for the platform but, at the same time, we want users to be able to access through a reserved domain with a non-tor browser.

Any suggestions?

Thanks in advance

This means your instance is launched as an onion site, and as such, cannot be viewed or accessed with a non-tor browser.

Onion sites can only be accessed through tor-browsers, but if you want your discourse instance to be accessed outside its onion domain, then you will need to get a premium domain for the ‘surface web’ like a .com,.org, .ly, etc. When you do this, then you can map the domain you bought with your discourse instance through its IP address.

I hope this is clear enough, huh?

2 Mi Piace

Hello,

yes, we have a premium domain configured already. What we want to achieve is that you can access to the platform both through the premium domain (this is what is working) and an onion domain (we have created the onion domain; configured tor on the servers; configured nginx) at the same time. We included in the server_name paramater the onion domain but this doesnt seem to be enough.

Thanks.

Oh,never knew this was what you requested. I had thought in the reverse.

For your present condition, please see this.I hope it explains what you need to do better.

2 Mi Piace

I know this thread is old as hell, but i was having the same problem and had to do some tweaks to make it work.

The thing is that i checked with ./launcher logs app and turns out the onion template copies a bunch of stuff from the default site, the problem is that some of these settings are duplicated.

I had to log into the container with ./launcher enter app and then edit the /etc/nginx/conf.d/onion.conf to delete the line proxy_buffer_size 8k;

Additionally, I had to add the server_names_hash_bucket_size 64; to the file nginx.conf

This made the server work again, I found this by looking at the logs

3 Mi Piace

Poiché il progetto Tor ha ora una documentazione sull’intestazione Onion-Location, sarei interessato a sapere come sia possibile configurare Discourse per servire sia un “dominio superficie” che un onion.

A quanto pare, le modifiche di @BryanHR possono essere effettuate nella configurazione YAML del container. Immagino che l’intestazione Onion-Location possa essere aggiunta nello stesso modo.

Tuttavia, ricordo che Discourse è strettamente legato al suo host originale, quindi mi preoccupa che l’accesso a un sito .onion possa servire risorse tramite HTTP o HTTPS normale senza passare attraverso la rete Tor. (Ad esempio, la richiesta originale viene effettuata tramite Tor, ma il JavaScript utilizza il dominio originale per ottenere risorse aggiuntive).

2 Mi Piace