From 57a421133a011d99d4fbfc5342686a68a890f573 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Isma=C3=ABl=20Bouya?= Date: Fri, 9 Jul 2021 17:57:31 +0200 Subject: [PATCH] Add matrix configuration --- modules/private/websites/immae/matrix/client | 8 ++++++++ modules/private/websites/immae/matrix/server | 3 +++ modules/private/websites/immae/production.nix | 8 ++++++++ nixops/secrets | 2 +- 4 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 modules/private/websites/immae/matrix/client create mode 100644 modules/private/websites/immae/matrix/server diff --git a/modules/private/websites/immae/matrix/client b/modules/private/websites/immae/matrix/client new file mode 100644 index 0000000..2769de5 --- /dev/null +++ b/modules/private/websites/immae/matrix/client @@ -0,0 +1,8 @@ +{ + "m.homeserver": { + "base_url": "https://immae.ems.host" + }, + "m.identity_server": { + "base_url": "https://vector.im" + } +} diff --git a/modules/private/websites/immae/matrix/server b/modules/private/websites/immae/matrix/server new file mode 100644 index 0000000..449155a --- /dev/null +++ b/modules/private/websites/immae/matrix/server @@ -0,0 +1,3 @@ +{ + "m.server": "immae.ems.host:443" +} diff --git a/modules/private/websites/immae/production.nix b/modules/private/websites/immae/production.nix index 439b455..ff9cf9d 100644 --- a/modules/private/websites/immae/production.nix +++ b/modules/private/websites/immae/production.nix @@ -50,6 +50,14 @@ in { Require all granted + Alias /.well-known/matrix ${./matrix} + + Options Indexes FollowSymLinks MultiViews Includes + AllowOverride None + Require all granted + Header always set Access-Control-Allow-Origin "*" + + Alias /cours ${coursDir} DirectoryIndex index.htm index.html diff --git a/nixops/secrets b/nixops/secrets index 9326233..f307335 160000 --- a/nixops/secrets +++ b/nixops/secrets @@ -1 +1 @@ -Subproject commit 932623303fd674faf8106e03ea0b89195edfdc02 +Subproject commit f307335e4be81cabcd194febfb617374fd13d800 -- 2.41.0