From daceff4914bbe2ca9d732a8ba677f67907fa1149 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Sun, 18 Sep 2022 23:44:59 +0200 Subject: [PATCH 1/4] Add LimitNOFILE to service conf --- conf/systemd.service | 1 + 1 file changed, 1 insertion(+) diff --git a/conf/systemd.service b/conf/systemd.service index e961638..9d09edc 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -10,6 +10,7 @@ WorkingDirectory=__FINALPATH__/ ExecStart=__FINALPATH__/bin/dendrite-monolith-server --tls-cert=/etc/yunohost/certs/__DOMAIN__/crt.pem --tls-key=/etc/yunohost/certs/__DOMAIN__/key.pem --config=dendrite.yaml --http-bind-address=:__PORT__ --https-bind-address=:__TLS_PORT__ __REALLY_ENABLE_OPEN_REGISTRATION__ StandardOutput=append:/var/log/__APP__/__APP__.log StandardError=inherit +LimitNOFILE=65535 # Sandboxing options to harden security # Depending on specificities of your service/app, you may need to tweak these From 6a69cd6e55030a6882524efa947609ecacc02e52 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Sun, 18 Sep 2022 23:46:00 +0200 Subject: [PATCH 2/4] Enable DNS cache --- conf/dendrite.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/dendrite.yaml b/conf/dendrite.yaml index 5e02c0b..e5ce76e 100644 --- a/conf/dendrite.yaml +++ b/conf/dendrite.yaml @@ -116,12 +116,12 @@ global: # if there is no local caching resolver available for use. dns_cache: # Whether or not the DNS cache is enabled. - enabled: false + enabled: true # Maximum number of entries to hold in the DNS cache, and # for how long those items should be considered valid in seconds. - cache_size: 256 - cache_lifetime: "5m" # 5minutes; see https://pkg.go.dev/time@master#ParseDuration for more + cache_size: 4096 + cache_lifetime: "10m" # 5minutes; see https://pkg.go.dev/time@master#ParseDuration for more # Configuration for the Appservice API. app_service_api: From b11ab90ac1d0d0f56f52f78f08f9fb2283052b52 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Thu, 22 Sep 2022 18:47:34 +0000 Subject: [PATCH 3/4] Upgrade to v0.9.9 --- conf/app.src | 4 ++-- manifest.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/app.src b/conf/app.src index eba1325..107322e 100644 --- a/conf/app.src +++ b/conf/app.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://api.github.com/repos/matrix-org/dendrite/tarball/v0.9.8 -SOURCE_SUM=cd882f4f1443327db5a66ad84decf1c02ed28908aeca275bdbecd31fd4522797 +SOURCE_URL=https://api.github.com/repos/matrix-org/dendrite/tarball/v0.9.9 +SOURCE_SUM=8fb10221399961efb5ec31ec65e94f87a20f09c48c5ef4eb1d7cef161afa7ed3 SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=tar.gz SOURCE_IN_SUBDIR=true diff --git a/manifest.json b/manifest.json index 1618e90..b9d5395 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Matrix homeserver of second generation", "fr": "Serveur Matrix de seconde génération" }, - "version": "0.9.8~ynh1", + "version": "0.9.9~ynh1", "url": "https://matrix.org/", "upstream": { "license": "Apache-2.0", From cf8fc8bb7e476ce2b8d8b1484d893bb98dee7543 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Thu, 22 Sep 2022 18:47:38 +0000 Subject: [PATCH 4/4] Auto-update README --- README.md | 2 +- README_fr.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a50b1e2..7fa6b78 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ Dendrite is a second-generation Matrix homeserver written in Go. It intends to p - Scalable: can run on multiple machines and eventually scale to massive homeserver deployments. -**Shipped version:** 0.9.8~ynh1 +**Shipped version:** 0.9.9~ynh1 ## Disclaimers / important information diff --git a/README_fr.md b/README_fr.md index 30f3916..8c88b45 100644 --- a/README_fr.md +++ b/README_fr.md @@ -24,7 +24,7 @@ Dendrite is a second-generation Matrix homeserver written in Go. It intends to p - Scalable: can run on multiple machines and eventually scale to massive homeserver deployments. -**Version incluse :** 0.9.8~ynh1 +**Version incluse :** 0.9.9~ynh1 ## Avertissements / informations importantes