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

Set up the web server for cryptpad on the mesh

parent 460eece8
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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
......
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