CryptPad
Source : https://github.com/xwiki-labs/cryptpad
CryptPad - Installation & configuration
Install
Source : https://github.com/xwiki-labs/cryptpad/wiki/Installation-guide
Adapt v0.33.6 with the number here
sudo su
mkdir /var/www/cryptpad.co.tools
mkdir /var/www/cryptpad.co.tools/home-user
adduser cryptpad --home /var/www/cryptpad.co.tools/home-user
chown -R cryptpad:cryptpad /var/www/cryptpad.co.tools
ufw allow 2016
su cryptpad
cd /var/www/cryptpad.co.tools
git clone https://github.com/xwiki-labs/cryptpad.git cryptpad
cd cryptpad
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.6/install.sh | bash
nvm install --lts
npm install bower
npm install
bower install
cp config.example.js config.js
Edit config.js :
var domain = ' https://pad.co.tools/';
httpPort: 2016,
httpSafePort: 2017,
myDomain: 'pad.co.tools',
adminEmail: 'contact@communecter.org',
create start-server.sh file and make it executable :
#!/bin/bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
cd /var/www/cryptpad.co.tools/cryptpad
node server &
sudo nano /etc/rc.local :
su cryptpad -c "/var/www/cryptpad.co.tools/cryptpad/start-server.sh" &
Install with docker
Source : https://hub.docker.com/r/arno0x0x/docker-cryptpad/
sudo su
ufw allow 2016
docker pull arno0x0x/docker-cryptpad
docker run -d -p 2016:3000 -v /var/www/cryptpad.co.tools/datastore/ arno0x0x/docker-cryptpad
Apache
Source : https://github.com/xwiki-labs/cryptpad/wiki/Apache
ServerName pad.co.tools
ServerAlias cryptopad.co.tools
ServerAdmin webmaster@co.tools
ProxyPass / http://83.166.144.90:2016/
ProxyPassReverse / http://83.166.144.90:2016/
ProxyRequests Off
ProxyPreserveHost Off
RewriteEngine on
RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC]
RewriteCond %{HTTP:CONNECTION} Upgrade$ [NC]
RewriteRule .* ws://83.166.144.90:2016%{REQUEST_URI} [P]