mirror of
https://github.com/elisspace/etherpad.git
synced 2026-08-29 15:43:58 +00:00
69da5deae8335c813837c09a5f80a5ba753a7748
etherpad
My own etherpad configuration built using advice from HowToForge and DigitalOcean.
Instructions
MariaDB
Follow MariaDB instructions here
apt update -yapt install gnupg2 git unzip libssl-dev pkg-config gcc g++ make build-essential -yapt install mariadb-servermysqlcreate database etherpad;grant all privileges on etherpad.* to etherpad@localhost identified by 'PASSWORD';with your own, secure password in place ofPASSWORD- flush privileges;
- exit;
Node.js
Follow Node.js instructions from here.
curl -sL https://deb.nodesource.com/setup_17.x -o nodesource_setup.shNote the updated version. If facing issues, 17 and 14 both worked for me previously.bash nodesource_setup.shapt install nodejsreturns something likev17...
Etherpad
Install and configure Etherpad via instructions from same site above
adduser --home /opt/etherpad --shell /bin/bash etherpadand set a secure password when promptedinstall -d -m 755 -o etherpad -g etherpad /opt/etherpadsu - etherpadgit clone --branch master https://github.com/ether/etherpad-lite.gitcd etherpad-litebin/run.shvim settings.json- Remove the following lines
"dbType" : "dirty",
"dbSettings" : {
"filename" : "var/dirty.db"
},
- Change the MySQL settings to match previous set up
"dbType" : "mysql",
"dbSettings" : {
"user": "etherpad",
"host": "localhost",
"port": 3306,
"password": "PASSWORD", #change this to match your secure password!
"database": "etherpad",
"charset": "utf8mb4"
},
- Change the
trustProxyline:"trustProxy": true, - Define a password for admin user:
"users": {
"admin": {
"password": "SUPERSECUREPASSWORD#CHANGEME",
"is_admin": true
},
./bin/installDeps.shand ignore any errors. They shouldn't cause any real issues for a personal use server, although you'll want to fix the security issues if this is used in a more sensitive contextexit
Systemd Service
Create systemd service.
- Use file and follow instructions inside.
Nginx
Set up nginx
sudo apt install nginxsudo ufw allow "Nginx Full"- Set up [etherpad.conf] file as instructed in file. Make sure to replace
e.mysterylie.xyzwith your own preferred domain, for exampleetherpad.example.com sudo ln -s /etc/nginx/sites-available/etherpad.conf /etc/nginx/sites-enabled/sudo nginx -tto test your configuration file and look for "ok" and "successful" at end of outputsudo systemctl reload nginx
Certbot and SSL
Install certbot and SSL
- sudo apt install certbot python3-certbot-nginx
sudo certbot --nginx -d e.mysterylie.xyz(but update the domain to match the one you used in the previous step)- When asked, choose option
2to redirect all traffic to HTTPS. You can change this back if you run into issues later. - Reload your site and make sure you see the lock!! If you see the lock, you're done!
Languages
desktop
100%