Use onion address for ghost blog

This commit is contained in:
Bob Mottram 2016-11-08 14:10:14 +00:00
parent 62c1e50612
commit 8641bb5541
1 changed files with 4 additions and 0 deletions

View File

@ -424,6 +424,10 @@ function install_ghost {
configure_php
GHOST_ONION_HOSTNAME=$(add_onion_service ghost 80 ${GHOST_ONION_PORT})
if [[ $ONION_ONLY != 'no' ]]; then
sed -i "s|url: .*|url: 'http://${GHOST_ONION_HOSTNAME}',|g" /var/www/${GHOST_DOMAIN_NAME}/htdocs/config.js
systemctl restart ghost
fi
function_check nginx_ensite
nginx_ensite $GHOST_DOMAIN_NAME