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.
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.
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.
أعلم أن هذا الموضوع قديم جداً، لكنني واجهت نفس المشكلة واضطررت إلى إجراء بعض التعديلات لجعله يعمل.
المشكلة هي أنني تفحصت الأمر ./launcher logs app واتضح أن قالب البصل ينسخ مجموعة من العناصر من الموقع الافتراضي، والمشكلة هي أن بعض هذه الإعدادات مكررة.
اضطررت لتسجيل الدخول إلى الحاوية باستخدام ./launcher enter app ثم تعديل الملف /etc/nginx/conf.d/onion.conf لحذف السطر proxy_buffer_size 8k;
بالإضافة إلى ذلك، اضطررت لإضافة server_names_hash_bucket_size 64; إلى ملف nginx.conf
هذا جعل الخادم يعمل مرة أخرى، وقد وجدت ذلك من خلال مراجعة السجلات.
بما أن مشروع تور لديه الآن وثائق حول رأس Onion-Location، فسأهتم بمعرفة كيفية إعداد Discourse لخدمة كل من “النطاق السطحي” ونطاق البصل.
يبدو لي أن تعديلات @BryanHR يمكن إجراؤها في ملف YAML الخاص بالحاوية. أفترض أنه يمكن إضافة رأس Onion-Location بنفس الطريقة.
لكن يبدو أنني أتذكر أن Discourse مرتبط بمضيفه الأصلي، لذا فإنني قلق من أن الوصول إلى موقع .onion قد يقدم الموارد عبر HTTP أو HTTPS العاديين دون المرور عبر شبكة تور. (على سبيل المثال، يتم الطلب الأصلي عبر تور، لكن جافا سكريبت يستخدم النطاق الأصلي للحصول على أصول إضافية).