Skip to content

Commit

Permalink
haraka: add wss URL
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Oct 19, 2024
1 parent 73f8239 commit 51c895b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
3 changes: 2 additions & 1 deletion provision/haraka.sh
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,8 @@ configure_haraka_watch()
fi

if [ ! -f "$HARAKA_CONF/watch.ini" ]; then
echo '[wss]' > "$HARAKA_CONF/watch.ini"
echo "[wss]
url=wss://$TOASTER_DOMAIN_NAME/watch" > "$HARAKA_CONF/watch.ini"
fi
}

Expand Down
13 changes: 4 additions & 9 deletions provision/webmail.sh
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ configure_lighttpd()
# shellcheck disable=2016
sed -i.bak \
-e 's/^#include_shell "cat/include_shell "cat/' \
-e '/^var.server_root/ s/\/usr\/local\/www\/data/\/data\/htdocs/' \
-e '/^var.server_root/ s|/usr/local/www/data|/data/htdocs|' \
"$_lighttpd_conf"

store_config "$_lighttpd_dir/vhosts.d/mail-toaster.conf" <<EO_LIGHTTPD_MT6
Expand Down Expand Up @@ -178,15 +178,12 @@ EO_LIGHTTPD_MT6

install_webmail()
{
stage_setup_tls

if [ "$WEBMAIL_HTTPD" = "lighttpd" ]; then
install_lighttpd
else
install_nginx

if [ "$TOASTER_WEBMAIL_PROXY" = "nginx" ]; then
stage_setup_tls
fi

configure_nginx_server
fi
}
Expand Down Expand Up @@ -402,9 +399,7 @@ configure_webmail()

_data="$ZFS_DATA_MNT/webmail"
_htdocs="$_data/htdocs"
if [ ! -d "$_htdocs" ]; then
mkdir -p "$_htdocs"
fi
if [ ! -d "$_htdocs" ]; then mkdir -p "$_htdocs"; fi

if [ -f "$_htdocs/index.html" ]; then
tell_status "backing up index.html"
Expand Down

0 comments on commit 51c895b

Please sign in to comment.