etherpad: New version

This commit is contained in:
polyfloyd 2024-06-01 23:28:45 +02:00
parent 19d95cb352
commit fc5913d56b
7 changed files with 32 additions and 15 deletions

View file

@ -1,4 +1,4 @@
# Managed by Ansible
# {{ ansible_managed }}
[Unit]
Description=Etherpad
@ -8,10 +8,10 @@ After=network.target
Type=simple
Restart=always
RestartSec=10s
ExecStart=/opt/etherpad/src/bin/run.sh /var/log/etherpad.log
ExecStartPre=+/usr/bin/npm install pnpm -g
ExecStart=/opt/etherpad/bin/run.sh /var/log/etherpad.log
User=etherpad
Environment="NODE_ENV=production"
[Install]
WantedBy=multi-user.target

View file

@ -1,3 +1,5 @@
# {{ ansible_managed }}
server {
listen 443 ssl http2 default_server;
listen [::]:443 ssl http2 default_server;
@ -13,8 +15,10 @@ server {
location / {
proxy_pass http://127.0.0.1:9001/;
include proxy_params;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Connection $http_connection;
}
include "snippets/acme.conf";

View file

@ -0,0 +1,5 @@
# {{ ansible_managed }}
Package: nodejs
Pin: origin deb.nodesource.com
Pin-Priority: 600

View file

@ -1,4 +1,3 @@
# Managed by Ansible
# {{ ansible_managed }}
deb https://deb.nodesource.com/{{ nodejs_version }} {{ ansible_facts.distribution_release }} main
deb-src https://deb.nodesource.com/{{ nodejs_version }} {{ ansible_facts.distribution_release }} main
deb [arch=$arch signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_{{ nodejs_version }} nodistro main

View file

@ -1,4 +1,4 @@
// Managed by Ansible
// {{ ansible_managed }}
{
"title": "Bitlair Etherpad",
@ -61,7 +61,7 @@
"suppressErrorsInPadText": false,
"requireSession": false,
"editOnly": false,
"minify": true,
"minify": false,
"maxAge": 21600, // 60 * 60 * 6 = 6 hours
"abiword": null,
"soffice": null,
@ -85,8 +85,7 @@
"percentageToScrollWhenUserPressesArrowUp": 0
},
"socketTransportProtocols" : ["xhr-polling", "jsonp-polling", "htmlfile"],
"socketTransportProtocols" : ["websocket", "polling"],
"socketIo": {
"maxHttpBufferSize": 10000
},