mirror of
https://github.com/YunoHost/doc.git
synced 2024-09-03 20:06:26 +02:00
Update torhiddenservice.md
This commit is contained in:
parent
19c0c60e9d
commit
8e02acee99
1 changed files with 9 additions and 16 deletions
|
@ -1,16 +1,14 @@
|
||||||
# Using YunoHost as a Tor Hidden Service
|
## Using YunoHost as a Tor Hidden Service
|
||||||
|
|
||||||
See https://www.torproject.org/docs/tor-hidden-service.html.en
|
See https://www.torproject.org/docs/tor-hidden-service.html.en
|
||||||
|
|
||||||
## Installing Tor
|
### Installing Tor
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo apt-get install tor
|
sudo apt-get install tor
|
||||||
```
|
```
|
||||||
|
|
||||||
## Configuring our hidden service
|
### Configuring our hidden service
|
||||||
|
Edit `/etc/tor/torrc`, and add these lines:
|
||||||
Edit /etc/tor/torrc, and add these lines:
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
HiddenServiceDir /var/lib/tor/hidden_service/
|
HiddenServiceDir /var/lib/tor/hidden_service/
|
||||||
|
@ -18,36 +16,31 @@ HiddenServicePort 80 127.0.0.1:80
|
||||||
HiddenServicePort 443 127.0.0.1:443
|
HiddenServicePort 443 127.0.0.1:443
|
||||||
```
|
```
|
||||||
|
|
||||||
## Restart Tor
|
### Restart Tor
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
service tor restart
|
service tor restart
|
||||||
```
|
```
|
||||||
|
|
||||||
## Get your Tor Hidden Service hostname
|
### Get your Tor Hidden Service hostname
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cat /var/lib/tor/hidden_service/hostname
|
cat /var/lib/tor/hidden_service/hostname
|
||||||
```
|
```
|
||||||
|
|
||||||
Your domain looks like *random123456789.onion*
|
Your domain looks like *random123456789.onion*
|
||||||
|
|
||||||
## Add the .onion domain to Yunohost
|
### Add the .onion domain to YunoHost
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
yunohost domain add random123456789.onion
|
yunohost domain add random123456789.onion
|
||||||
```
|
```
|
||||||
|
|
||||||
## Avoid SSO redirection (optional)
|
### 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):
|
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):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
#access_by_lua_file /usr/share/ssowat/access.lua;
|
#access_by_lua_file /usr/share/ssowat/access.lua;
|
||||||
```
|
```
|
||||||
|
|
||||||
## Restart nginx
|
### Restart nginx
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
service nginx restart
|
service nginx restart
|
||||||
```
|
```
|
Loading…
Add table
Reference in a new issue