1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mattermost_ynh.git synced 2024-09-03 19:36:29 +02:00
* scripts: reduce pgloader's prefetched columns 

This helps fixing stack overflow errors on large
databases.

* scripts: increase the migration timeout again

It seems to be too short on some lesser-powered VMs.

* Update manifest.json

* Auto-update README

* [autopatch] Fix Host and X-Forwarded-For header spoofing

---------

Co-authored-by: Pierre de La Morinerie <kemenaran@gmail.com>
Co-authored-by: yunohost-bot <yunohost@yunohost.org>
Co-authored-by: tituspijean <titus+yunohost@pijean.ovh>
This commit is contained in:
Éric Gaspar 2023-07-28 07:33:53 +01:00 committed by GitHub
parent f87fba3485
commit a67ddf1fca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 7 deletions

View file

@ -36,7 +36,7 @@ To explore the benefits of Mattermosts enterprise features, you can replace t
- New features and improvements released regularly - New features and improvements released regularly
**Shipped version:** 7.8.1~ynh1 **Shipped version:** 7.8.1~ynh2
## Screenshots ## Screenshots

View file

@ -36,7 +36,7 @@ Pour explorer les avantages des fonctionnalités d'entreprise de Mattermost, vou
- Nouvelles fonctionnalités et améliorations publiées régulièrement - Nouvelles fonctionnalités et améliorations publiées régulièrement
**Version incluse :** 7.8.1~ynh1 **Version incluse :** 7.8.1~ynh2
## Captures décran ## Captures décran

View file

@ -4,7 +4,7 @@ location ~ __PATH__/api/v[0-9]+/(users/)?websocket$ {
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade"; proxy_set_header Connection "upgrade";
client_max_body_size 50M; client_max_body_size 50M;
proxy_set_header Host $http_host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;
@ -18,7 +18,7 @@ location ~ __PATH__/api/v[0-9]+/(users/)?websocket$ {
location __PATH__/ { location __PATH__/ {
client_max_body_size 50M; client_max_body_size 50M;
proxy_set_header Connection ""; proxy_set_header Connection "";
proxy_set_header Host $http_host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;

View file

@ -6,7 +6,7 @@
"en": "Open source collaboration platform built for developers", "en": "Open source collaboration platform built for developers",
"fr": "Plateforme de collaboration open source conçue pour les développeurs" "fr": "Plateforme de collaboration open source conçue pour les développeurs"
}, },
"version": "7.8.1~ynh1", "version": "7.8.1~ynh2",
"url": "http://www.mattermost.org/", "url": "http://www.mattermost.org/",
"upstream": { "upstream": {
"license": "GPL-3.0-only", "license": "GPL-3.0-only",

View file

@ -35,7 +35,7 @@ mariadb-to-pg() {
pushd $final_path pushd $final_path
ynh_systemd_action --service_name="$app" --action="stop" ynh_systemd_action --service_name="$app" --action="stop"
set +e set +e
sudo -u mattermost timeout --preserve-status 180 "./bin/mattermost" sudo -u mattermost timeout --preserve-status 300 "./bin/mattermost"
if [ "$?" != "0" ] && [ "$?" != "143" ] ; then if [ "$?" != "0" ] && [ "$?" != "143" ] ; then
ynh_die --message="Failed to run Mattermost to create PostgreSQL database tables" --ret_code=1 ynh_die --message="Failed to run Mattermost to create PostgreSQL database tables" --ret_code=1
fi fi
@ -67,7 +67,7 @@ LOAD DATABASE
WITH include no drop, truncate, create no tables, WITH include no drop, truncate, create no tables,
create no indexes, preserve index names, no foreign keys, create no indexes, preserve index names, no foreign keys,
data only, workers = 16, concurrency = 1 data only, workers = 16, concurrency = 1, prefetch rows = 10000
SET MySQL PARAMETERS SET MySQL PARAMETERS
net_read_timeout = '90', net_read_timeout = '90',