Add me as a second maintainer.
Remove outdated README.md but put a link to a Wiki instead.
Use Onion Service instead of Hidden Service.
Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
Mark the /etc/tor folder to keep during sysupgrade.
The folder contains hidden_services folder with keys.
Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
On each tor-hs service restart it generates a config file /etc/tor/torrc_generated.
The /etc/ is stored on a disk and kills it and slow.
Instead create a dedicated tor service Runtime Dir in the temp /var/run/.
It will be accessible only to the tor user.
Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
Remove unused description.
Quote variables.
Use hostname_file variable.
Remove unnecessary quotes around "common".
Use echo -n to truncate a TORRC_FILE.
Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
Replace boolean "true"/"false" with more frequently used 1/0.
This may avoid configuration mistakes which is critical for Tor.
The Luci app anyway will set it as 1/0.
Make sections named. This is not required but again safes from mistakes when executing uci command.
Uncomment sections but disable them by default.
Then in a Luci app a user can quickly figure out what to change.
Ideally a user may just enable the config and start using it.
In the nextcloud config use a single 80 instead of 80;80.
This simpler configuration is now supported.
Instead of "Hidden service" the Tor team now uses "Onion service".
Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
Using substring instead of awk.
It changes behaviour when only one port is specified.
Previously:
value="80" => public="80" local=""
Now:
value="80" => public="80" local="80"
It simplifies configuration of one-to-one ports.
Signed-off-by: Sergey Ponomarev <stokito@gmail.com>