ssb tor integration
This commit is contained in:
parent
1e1134ffd3
commit
5c07267254
|
@ -481,9 +481,19 @@ function install_scuttlebot {
|
||||||
exit 73528
|
exit 73528
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
SCUTTLEBOT_ONION_HOSTNAME=$(add_onion_service scuttlebot 80 ${SCUTTLEBOT_ONION_PORT})
|
||||||
|
|
||||||
|
if [[ "$ONION_ONLY" == 'no' ]]; then
|
||||||
{ echo '{';
|
{ echo '{';
|
||||||
echo " \"host\": \"${DEFAULT_DOMAIN_NAME}\",";
|
echo " \"host\": \"${DEFAULT_DOMAIN_NAME}\",";
|
||||||
echo " \"port\": ${SCUTTLEBOT_PORT},";
|
echo ' "tor-only": false,'; } > /etc/scuttlebot/.ssb/config
|
||||||
|
else
|
||||||
|
{ echo '{';
|
||||||
|
echo " \"host\": \"${SCUTTLEBOT_ONION_HOSTNAME}\",";
|
||||||
|
echo ' "tor-only": true,'; } > /etc/scuttlebot/.ssb/config
|
||||||
|
fi
|
||||||
|
|
||||||
|
{ echo " \"port\": ${SCUTTLEBOT_PORT},";
|
||||||
echo ' "timeout": 30000,';
|
echo ' "timeout": 30000,';
|
||||||
echo ' "pub": true,';
|
echo ' "pub": true,';
|
||||||
echo ' "local": true,';
|
echo ' "local": true,';
|
||||||
|
@ -498,15 +508,13 @@ function install_scuttlebot {
|
||||||
echo ' "logging": {';
|
echo ' "logging": {';
|
||||||
echo ' "level": "error"';
|
echo ' "level": "error"';
|
||||||
echo ' }';
|
echo ' }';
|
||||||
echo '}'; } > /etc/scuttlebot/.ssb/config
|
echo '}'; } >> /etc/scuttlebot/.ssb/config
|
||||||
chown scuttlebot:scuttlebot /etc/scuttlebot/.ssb/config
|
chown scuttlebot:scuttlebot /etc/scuttlebot/.ssb/config
|
||||||
systemctl restart scuttlebot.service
|
systemctl restart scuttlebot.service
|
||||||
|
|
||||||
firewall_add scuttlebot ${SCUTTLEBOT_PORT}
|
firewall_add scuttlebot ${SCUTTLEBOT_PORT}
|
||||||
firewall_add git_ssb ${GIT_SSB_PORT}
|
firewall_add git_ssb ${GIT_SSB_PORT}
|
||||||
|
|
||||||
|
|
||||||
SCUTTLEBOT_ONION_HOSTNAME=$(add_onion_service scuttlebot 80 ${SCUTTLEBOT_ONION_PORT})
|
|
||||||
scuttlebot_git_setup
|
scuttlebot_git_setup
|
||||||
git_ssb_script
|
git_ssb_script
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue