Operations grimoire/Etherpad: Difference between revisions
(Created page with "== Shared between Nasqueron and Wolfplex == The same Etherpad installation is served at two domains: * https://pad.wolfplex.be/ * https://pad.nasqueron.org/ == Launch contain...") |
(→API key issue: {{Configuration as code}} {{Vault}}) |
||
Line 47: | Line 47: | ||
Normally, this is now handled by the following line from run-pad script: | Normally, this is now handled by the following line from run-pad script: | ||
<code>docker cp /data/etherpad/APIKEY.txt $INSTANCE:opt/etherpad-lite/APIKEY.txt</code> | <code>docker cp /data/etherpad/APIKEY.txt $INSTANCE:opt/etherpad-lite/APIKEY.txt</code> | ||
{{Configuration as Code}} | |||
{{Vault migration}} |
Revision as of 19:43, 27 July 2016
The same Etherpad installation is served at two domains:
Launch container
run-pad
Source script available at https://devcentral.nasqueron.org/P210.
Maintenance scripts
There are scripts to delete a pad or to repair a corrupted pad.
There are documented at https://github.com/ether/etherpad-lite/wiki/Getting-to-know-the-tools-in-bin
Past known issues
Instability
When a copy/paste was done, server could crash.
This has been fixed by switching database to utf8mb4_bin:
ALTER DATABASE `etherpad` CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
ALTER TABLE `etherpad.store` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
Missing plugins
The installation requires two plugins, provided as npm packages:
- ep_ether-o-meter
- ep_author_neat
We now install them in run-pad
:
PLUGINS="ep_ether-o-meter ep_author_neat"
for plugin in $PLUGINS; do
docker exec $INSTANCE npm install $plugin
done
API key issue
http://www.wolfplex.be/pad/ could be empty. When that occurs, the API key on this site diverges from ours.
They store their API on Ysul at /var/wwwroot/wolfplex.be/.dat/secrets-api.json
.
Normally, this is now handled by the following line from run-pad script:
docker cp /data/etherpad/APIKEY.txt $INSTANCE:opt/etherpad-lite/APIKEY.txt
Configuration as code.
This service should be properly defined in rOPS repository as a Salt state.