From: Sergey Ponomarev Date: Sun, 23 Jul 2023 09:14:45 +0000 (+0300) Subject: tor-hs: cleanup tor-hs.conf X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=783b92d5b3e41a0dc6bddf08bb838da6a2d0e5f0;p=openwrt-packages.git tor-hs: cleanup tor-hs.conf 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 --- diff --git a/net/tor-hs/files/tor-hs.conf b/net/tor-hs/files/tor-hs.conf index 5480685d0..2165670be 100644 --- a/net/tor-hs/files/tor-hs.conf +++ b/net/tor-hs/files/tor-hs.conf @@ -1,22 +1,21 @@ config tor-hs common - #option GenConf "/etc/tor/torrc_hs" option GenConf "/etc/tor/torrc_generated" option HSDir "/etc/tor/hidden_service" - option RestartTor "true" - option UpdateTorConf "true" + option RestartTor 1 + option UpdateTorConf 1 -#config hidden-service -# option Name 'sshd' -# option Description "Hidden service for ssh" -# option Enabled 'false' -# option IPv4 '127.0.0.1' -# #public port=2222, local port=22 -# list PublicLocalPort '2222;22' +config hidden-service sshd + option Name 'sshd' + option Description 'Onion service for ssh' + option Enabled 0 + option IPv4 '127.0.0.1' + #public port=2222, local port=22 + list PublicLocalPort '2222;22' -#config hidden-service -# option Name 'nextcloud' -# option Description "Hidden service for Nextcloud" -# option Enabled 'false' -# option IPv4 '127.0.0.1' -# option HookScript '/etc/tor/nextcloud-update.sh' -# list PublicLocalPort '80;80' +config hidden-service nextcloud + option Name 'nextcloud' + option Description 'Onion service for Nextcloud' + option Enabled 0 + option IPv4 '127.0.0.1' + option HookScript '/etc/tor/nextcloud-update.sh' + list PublicLocalPort '80'