Set up the web server for cryptpad on the mesh
This commit is contained in:
parent
460eece8cf
commit
14e21bc6dd
|
@ -323,7 +323,6 @@ function mesh_install_cryptpad {
|
||||||
echo '' >> $cryptpad_nginx_site
|
echo '' >> $cryptpad_nginx_site
|
||||||
echo ' try_files /www/$uri /www/$uri/index.html /customize/$uri;' >> $cryptpad_nginx_site
|
echo ' try_files /www/$uri /www/$uri/index.html /customize/$uri;' >> $cryptpad_nginx_site
|
||||||
echo '}' >> $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
|
cd $rootdir$CRYPTPAD_DIR
|
||||||
|
|
||||||
|
|
|
@ -92,6 +92,11 @@ function enable_cryptpad {
|
||||||
if [ ! -d $CRYPTPAD_DIR ]; then
|
if [ ! -d $CRYPTPAD_DIR ]; then
|
||||||
return
|
return
|
||||||
fi
|
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
|
if [ ! -d $CRYPTPAD_DIR/customize/api ]; then
|
||||||
mkdir -p $CRYPTPAD_DIR/customize/api
|
mkdir -p $CRYPTPAD_DIR/customize/api
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue