mise en place matrix.to avec patch

matrix-to
LapinPancake 2026-07-30 19:09:14 +02:00 committed by PyJaC++
parent e2912e9581
commit 90f9a1bb34
2 changed files with 26 additions and 2 deletions

View File

@ -0,0 +1,12 @@
diff --git a/src/open/clients/Element.js b/src/open/clients/Element.js
index 2d35c37..6249a30 100644
--- a/src/open/clients/Element.js
+++ b/src/open/clients/Element.js
@@ -18,6 +18,7 @@ import {Maturity, Platform, LinkKind,
FDroidLink, AppleStoreLink, PlayStoreLink, WebsiteLink} from "../types.js";
const trustedWebInstances = [
+ "element.crans.org",
"app.element.io", // first one is the default one
"develop.element.io",
"chat.fedoraproject.org",

View File

@ -194,8 +194,8 @@ let
src = fetchFromCrans { src = fetchFromCrans {
repo = "homepage"; repo = "homepage";
rev = "master"; rev = "bfd8559fe6ce683767a26898ef7674ff3e3b1930";
hash = "sha256-e9tttzKEWcBhogQY2ITDqqTbix/zcnBAylj1eKY791E="; hash = "sha256-qFrNGYZLL5oYVAI4Pf34BPGqYqzFA65fdTL2u/14FpA";
}; };
nativeBuildInputs = with pkgs; [ nativeBuildInputs = with pkgs; [
@ -206,6 +206,17 @@ let
hugo build -d $out hugo build -d $out
''; '';
}; };
matrixToSite = pkgs.applyPatches{
src = pkgs.fetchFromGitHub{
owner = "matrix-org";
repo = "matrix.to";
rev = "de7992d60c215f3c6a7f257880f0ebbf63369497";
hash = "sha256-12K4htaGbhnfM/GojkU2wUNInawlc8ilA8KOipgIgT4";
};
patches=[./matrix-to.patch];
};
in in
{ {
crans = { crans = {
@ -258,6 +269,7 @@ in
anubisConfig = "${anubisChallenge}"; anubisConfig = "${anubisChallenge}";
proxyPass = "172.16.10.110"; proxyPass = "172.16.10.110";
}; };
"matrix-to".serveLocalFiles=matrixToSite;
"mediawiki" = { "mediawiki" = {
anubisConfig = "${anubisWiki}"; anubisConfig = "${anubisWiki}";
proxyPass = "172.16.10.144"; proxyPass = "172.16.10.144";