Ana içeriğe geç

YunoHost'u Tor Gizli Servisi Olarak Kullanmak

uyarı

Bu eğitici bitmedi! Bazı verileri bu yükleme ile YunoHost'unuzun ana alan adına sızabilir. Yani bu bir "Gizli servis" değildir. Bakınız Resmi Tor gizli servis dökümantasyonu.

 Installing Tor

apt install tor 

 Configuring our hidden service

Edit /etc/tor/torrc, and add these lines:

HiddenServiceDir  /var/lib/tor/hidden_service/
HiddenServicePort 80 127.0.0.1:80
HiddenServicePort 443 127.0.0.1:443

 Restart Tor

service tor restart

Get your Tor Hidden Service hostname

cat /var/lib/tor/hidden_service/hostname

Your domain looks like random123456789.onion

Add the .onion domain to YunoHost

yunohost domain add random123456789.onion

Avoid SSO redirection (optional)

If you want to avoid being redirected to the SSO portal at login, you can deactivate SSOwat for this specific tor domain, by editing the file /etc/nginx/conf.d/random123456789.onion.conf and commenting the following line (two times):

#access_by_lua_file /usr/share/ssowat/access.lua;

Check for errors in NGINX configuration

nginx -t

Restart NGINX

service nginx restart