Use onion address for ghost blog
This commit is contained in:
parent
62c1e50612
commit
8641bb5541
|
@ -424,6 +424,10 @@ function install_ghost {
|
||||||
configure_php
|
configure_php
|
||||||
|
|
||||||
GHOST_ONION_HOSTNAME=$(add_onion_service ghost 80 ${GHOST_ONION_PORT})
|
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
|
function_check nginx_ensite
|
||||||
nginx_ensite $GHOST_DOMAIN_NAME
|
nginx_ensite $GHOST_DOMAIN_NAME
|
||||||
|
|
Loading…
Reference in New Issue