mirror of https://gitlab.crans.org/nounous/nixos
mise en place matrix.to avec patch
parent
e2912e9581
commit
90f9a1bb34
|
|
@ -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",
|
||||
|
|
@ -194,8 +194,8 @@ let
|
|||
|
||||
src = fetchFromCrans {
|
||||
repo = "homepage";
|
||||
rev = "master";
|
||||
hash = "sha256-e9tttzKEWcBhogQY2ITDqqTbix/zcnBAylj1eKY791E=";
|
||||
rev = "bfd8559fe6ce683767a26898ef7674ff3e3b1930";
|
||||
hash = "sha256-qFrNGYZLL5oYVAI4Pf34BPGqYqzFA65fdTL2u/14FpA";
|
||||
};
|
||||
|
||||
nativeBuildInputs = with pkgs; [
|
||||
|
|
@ -206,6 +206,17 @@ let
|
|||
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
|
||||
{
|
||||
crans = {
|
||||
|
|
@ -258,6 +269,7 @@ in
|
|||
anubisConfig = "${anubisChallenge}";
|
||||
proxyPass = "172.16.10.110";
|
||||
};
|
||||
"matrix-to".serveLocalFiles=matrixToSite;
|
||||
"mediawiki" = {
|
||||
anubisConfig = "${anubisWiki}";
|
||||
proxyPass = "172.16.10.144";
|
||||
|
|
|
|||
Loading…
Reference in New Issue