Skip to content
Snippets Groups Projects
Commit 8641bb55 authored by Bob Mottram's avatar Bob Mottram
Browse files

Use onion address for ghost blog

parent 62c1e506
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment