Browse Source

bower install

Bob Mottram 7 years ago
parent
commit
1e7e023dd2
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      src/freedombone-app-cryptpad

+ 3
- 3
src/freedombone-app-cryptpad View File

339
         echo '' >> $cryptpad_nginx_site
339
         echo '' >> $cryptpad_nginx_site
340
         echo '  index index.html;' >> $cryptpad_nginx_site
340
         echo '  index index.html;' >> $cryptpad_nginx_site
341
         echo '' >> $cryptpad_nginx_site
341
         echo '' >> $cryptpad_nginx_site
342
-        echo '  location = / {' >> $cryptpad_nginx_site
342
+        echo '  location = /cryptpad_websocket {' >> $cryptpad_nginx_site
343
         echo "    proxy_pass http://localhost:$CRYPTPAD_PORT;" >> $cryptpad_nginx_site
343
         echo "    proxy_pass http://localhost:$CRYPTPAD_PORT;" >> $cryptpad_nginx_site
344
         echo '    proxy_set_header X-Real-IP $remote_addr;' >> $cryptpad_nginx_site
344
         echo '    proxy_set_header X-Real-IP $remote_addr;' >> $cryptpad_nginx_site
345
         echo '    proxy_set_header Host $host;' >> $cryptpad_nginx_site
345
         echo '    proxy_set_header Host $host;' >> $cryptpad_nginx_site
390
     echo '' >> $cryptpad_nginx_site
390
     echo '' >> $cryptpad_nginx_site
391
     echo '  index index.html;' >> $cryptpad_nginx_site
391
     echo '  index index.html;' >> $cryptpad_nginx_site
392
     echo '' >> $cryptpad_nginx_site
392
     echo '' >> $cryptpad_nginx_site
393
-    echo '  location = / {' >> $cryptpad_nginx_site
393
+    echo '  location = /cryptpad_websocket {' >> $cryptpad_nginx_site
394
     echo "    proxy_pass http://localhost:$CRYPTPAD_PORT;" >> $cryptpad_nginx_site
394
     echo "    proxy_pass http://localhost:$CRYPTPAD_PORT;" >> $cryptpad_nginx_site
395
     echo '    proxy_set_header X-Real-IP $remote_addr;' >> $cryptpad_nginx_site
395
     echo '    proxy_set_header X-Real-IP $remote_addr;' >> $cryptpad_nginx_site
396
     echo '    proxy_set_header Host $host;' >> $cryptpad_nginx_site
396
     echo '    proxy_set_header Host $host;' >> $cryptpad_nginx_site
455
 
455
 
456
     npm install
456
     npm install
457
     npm install -g bower@1.8.0
457
     npm install -g bower@1.8.0
458
-    bower install
458
+    su -c 'bower install' - cryptpad
459
     cp config.example.js config.js
459
     cp config.example.js config.js
460
     if [ ! -f config.js ]; then
460
     if [ ! -f config.js ]; then
461
         echo $'Cryptpad config file not found'
461
         echo $'Cryptpad config file not found'