Use onion address in xmpp virtualhost
This commit is contained in:
parent
2487997a4c
commit
5cc277740b
|
@ -701,7 +701,11 @@ function xmpp_create_config {
|
||||||
echo ' { levels = { "error" }; to = "/dev/null"; };' >> /etc/prosody/prosody.cfg.lua
|
echo ' { levels = { "error" }; to = "/dev/null"; };' >> /etc/prosody/prosody.cfg.lua
|
||||||
echo '}' >> /etc/prosody/prosody.cfg.lua
|
echo '}' >> /etc/prosody/prosody.cfg.lua
|
||||||
echo '' >> /etc/prosody/prosody.cfg.lua
|
echo '' >> /etc/prosody/prosody.cfg.lua
|
||||||
echo "VirtualHost \"${DEFAULT_DOMAIN_NAME}\"" >> /etc/prosody/prosody.cfg.lua
|
if [[ $ONION_ONLY != 'no' ]]; then
|
||||||
|
echo "VirtualHost \"${XMPP_ONION_HOSTNAME}\"" >> /etc/prosody/prosody.cfg.lua
|
||||||
|
else
|
||||||
|
echo "VirtualHost \"${DEFAULT_DOMAIN_NAME}\"" >> /etc/prosody/prosody.cfg.lua
|
||||||
|
fi
|
||||||
echo ' ssl = {' >> /etc/prosody/prosody.cfg.lua
|
echo ' ssl = {' >> /etc/prosody/prosody.cfg.lua
|
||||||
echo " key = \"/etc/prosody/certs/${DEFAULT_DOMAIN_NAME}.key\";" >> /etc/prosody/prosody.cfg.lua
|
echo " key = \"/etc/prosody/certs/${DEFAULT_DOMAIN_NAME}.key\";" >> /etc/prosody/prosody.cfg.lua
|
||||||
if [ -f /etc/prosody/certs/${DEFAULT_DOMAIN_NAME}.pem ]; then
|
if [ -f /etc/prosody/certs/${DEFAULT_DOMAIN_NAME}.pem ]; then
|
||||||
|
@ -970,7 +974,6 @@ function install_xmpp_main {
|
||||||
|
|
||||||
systemctl restart prosody
|
systemctl restart prosody
|
||||||
|
|
||||||
cd
|
|
||||||
if [[ $ONION_ONLY != 'no' ]]; then
|
if [[ $ONION_ONLY != 'no' ]]; then
|
||||||
prosodyctl register $MY_USERNAME $XMPP_ONION_HOSTNAME "$XMPP_PASSWORD"
|
prosodyctl register $MY_USERNAME $XMPP_ONION_HOSTNAME "$XMPP_PASSWORD"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue