diff --git a/src/freedombone-app-cryptpad b/src/freedombone-app-cryptpad index 75b633bd..ae70ccd1 100755 --- a/src/freedombone-app-cryptpad +++ b/src/freedombone-app-cryptpad @@ -339,7 +339,7 @@ function install_cryptpad_main { echo '' >> $cryptpad_nginx_site echo ' index index.html;' >> $cryptpad_nginx_site echo '' >> $cryptpad_nginx_site - echo ' location = / {' >> $cryptpad_nginx_site + echo ' location = /cryptpad_websocket {' >> $cryptpad_nginx_site echo " proxy_pass http://localhost:$CRYPTPAD_PORT;" >> $cryptpad_nginx_site echo ' proxy_set_header X-Real-IP $remote_addr;' >> $cryptpad_nginx_site echo ' proxy_set_header Host $host;' >> $cryptpad_nginx_site @@ -390,7 +390,7 @@ function install_cryptpad_main { echo '' >> $cryptpad_nginx_site echo ' index index.html;' >> $cryptpad_nginx_site echo '' >> $cryptpad_nginx_site - echo ' location = / {' >> $cryptpad_nginx_site + echo ' location = /cryptpad_websocket {' >> $cryptpad_nginx_site echo " proxy_pass http://localhost:$CRYPTPAD_PORT;" >> $cryptpad_nginx_site echo ' proxy_set_header X-Real-IP $remote_addr;' >> $cryptpad_nginx_site echo ' proxy_set_header Host $host;' >> $cryptpad_nginx_site @@ -455,7 +455,7 @@ function install_cryptpad { npm install npm install -g bower@1.8.0 - bower install + su -c 'bower install' - cryptpad cp config.example.js config.js if [ ! -f config.js ]; then echo $'Cryptpad config file not found'