doc/torhiddenservice.md
2014-05-13 11:07:24 +02:00

40 lines
656 B
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Using Yunohost as a Tor Hidden Service
See https://www.torproject.org/docs/tor-hidden-service.html.en
## Installing Tor
```bash
apt-get install tor
```
## Configuring our hidden service
Edit /ect/tor/torrc, and add these lines:
```bash
HiddenServiceDir /var/lib/tor/hidden_service/
HiddenServicePort 80 127.0.0.1:80
HiddenServicePort 443 127.0.0.1:443
```
## Restart Tor
```bash
service tor restart
```
## Get your Tor Hidden Service hostname
```bash
cat /path/to/hidden_service/keys/hostname
```
Your domain looks like *random123456789.onion*
## Add the .onion domain to Yunohost
```bash
yunohost domain add random123456789.onion
```