Set up the web server for cryptpad on the mesh

This commit is contained in:
Bob Mottram 2017-10-24 13:53:27 +01:00
parent 460eece8cf
commit 14e21bc6dd
2 changed files with 5 additions and 1 deletions

View File

@ -323,7 +323,6 @@ function mesh_install_cryptpad {
echo '' >> $cryptpad_nginx_site
echo ' try_files /www/$uri /www/$uri/index.html /customize/$uri;' >> $cryptpad_nginx_site
echo '}' >> $cryptpad_nginx_site
chroot "$rootdir" ln -s /etc/nginx/sites-available/cryptpad /etc/nginx/sites-enabled/cryptpad
cd $rootdir$CRYPTPAD_DIR

View File

@ -92,6 +92,11 @@ function enable_cryptpad {
if [ ! -d $CRYPTPAD_DIR ]; then
return
fi
# Set up the web server
ln -s /etc/nginx/sites-available/cryptpad /etc/nginx/sites-enabled/cryptpad
rm /etc/nginx/sites-enabled/default
if [ ! -d $CRYPTPAD_DIR/customize/api ]; then
mkdir -p $CRYPTPAD_DIR/customize/api
fi