From: Ismaƫl Bouya Date: Fri, 9 Jul 2021 15:57:31 +0000 (+0200) Subject: Add matrix configuration X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FConfig%2FNix.git;a=commitdiff_plain;h=57a421133a011d99d4fbfc5342686a68a890f573 Add matrix configuration --- 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