Mise à jour de 'services/pad.libre-service.eu.md'
This commit is contained in:
parent
8c922729e6
commit
f8b8274981
1 changed files with 17 additions and 14 deletions
|
@ -128,13 +128,12 @@ git clone --branch master https://github.com/ether/etherpad-lite.git pad.libre-s
|
||||||
chown -R etherpad:etherpad /var/www/pad.libre-service.eu
|
chown -R etherpad:etherpad /var/www/pad.libre-service.eu
|
||||||
```
|
```
|
||||||
|
|
||||||
Premier lancement :
|
Créer le fichier de configuration :
|
||||||
```
|
```
|
||||||
su etherpad -c "cd /var/www/pad.libre-service.eu/ && ./bin/installDeps.sh && ./src/bin/run.sh"
|
cd /var/www/pad.libre-service.eu/ && cp settings.json settings.json.template
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Configurer dans `/var/www/pad.libre-service.eu/settings.json` :
|
||||||
Configuration dans le fichier `/var/www/pad.libre-service.eu/settings.json` :
|
|
||||||
```
|
```
|
||||||
- "dbType" : "dirty",
|
- "dbType" : "dirty",
|
||||||
- "dbSettings" : {
|
- "dbSettings" : {
|
||||||
|
@ -150,24 +149,29 @@ Configuration dans le fichier `/var/www/pad.libre-service.eu/settings.json` :
|
||||||
"database": "etherpad",
|
"database": "etherpad",
|
||||||
"charset": "utf8mb4"
|
"charset": "utf8mb4"
|
||||||
},
|
},
|
||||||
|
[…]
|
||||||
"trustProxy": true,
|
"trustProxy": true,
|
||||||
|
[…]
|
||||||
Define a password for the admin user:Advertisement
|
|
||||||
|
|
||||||
"users": {
|
"users": {
|
||||||
"admin": {
|
"admin": {
|
||||||
"password": "adminpassword",
|
"password": "xxxxxxxxxxxxxxxx",
|
||||||
"is_admin": true
|
"is_admin": true
|
||||||
},
|
},
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
Installer les dépendances nécessaires :
|
Premier lancement :
|
||||||
```
|
```
|
||||||
su etherpad -c "cd /var/www/pad.libre-service.eu/ && ./bin/installDeps.sh"
|
su etherpad -c "cd /var/www/pad.libre-service.eu/ && ./bin/installDeps.sh && ./src/bin/run.sh"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Neutraliser les vulnéralités :
|
||||||
|
```
|
||||||
|
su etherpad -c "cd /var/www/pad.libre-service.eu/ && npm audit"
|
||||||
|
su etherpad -c "cd /var/www/pad.libre-service.eu/ && npm i --package-lock-only"
|
||||||
|
su etherpad -c "cd /var/www/pad.libre-service.eu/ && npm audit fix"
|
||||||
|
su etherpad -c "cd /var/www/pad.libre-service.eu/ && npm audit"
|
||||||
|
```
|
||||||
|
|
||||||
## Configuration Systemd
|
## Configuration Systemd
|
||||||
|
|
||||||
|
@ -175,7 +179,7 @@ Créer le fichier `/etc/systemd/system/etherpad.service` :
|
||||||
```
|
```
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Etherpad-lite, the collaborative editor.
|
Description=Etherpad-lite, the collaborative editor.
|
||||||
After=syslog.target network.target
|
After=syslog.target network.target postgresql.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
|
@ -184,8 +188,7 @@ Group=etherpad
|
||||||
WorkingDirectory=/var/www/pad.libre-service.eu/
|
WorkingDirectory=/var/www/pad.libre-service.eu/
|
||||||
Environment=NODE_ENV=production
|
Environment=NODE_ENV=production
|
||||||
|
|
||||||
ExecStart=/usr/bin/node /var/www/pad.libre-service.eu/bin/run.sh
|
ExecStart=/var/www/pad.libre-service.eu/bin/run.sh
|
||||||
# src???/node/server.js
|
|
||||||
|
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue