]> git.immae.eu Git - perso/Immae/Config/Nix.git/commitdiff
Add matrix configuration
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Fri, 9 Jul 2021 15:57:31 +0000 (17:57 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Fri, 9 Jul 2021 15:57:31 +0000 (17:57 +0200)
modules/private/websites/immae/matrix/client [new file with mode: 0644]
modules/private/websites/immae/matrix/server [new file with mode: 0644]
modules/private/websites/immae/production.nix
nixops/secrets

diff --git a/modules/private/websites/immae/matrix/client b/modules/private/websites/immae/matrix/client
new file mode 100644 (file)
index 0000000..2769de5
--- /dev/null
@@ -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 (file)
index 0000000..449155a
--- /dev/null
@@ -0,0 +1,3 @@
+{
+    "m.server": "immae.ems.host:443"
+}
index 439b455171f3b9bae2bdb95fc21306e8f52943f4..ff9cf9df3910f5558d450f3f95ce0baf84ea0f60 100644 (file)
@@ -50,6 +50,14 @@ in {
           Require all granted
         </Directory>
 
+        Alias /.well-known/matrix ${./matrix}
+        <Directory ${./matrix}>
+          Options Indexes FollowSymLinks MultiViews Includes
+          AllowOverride None
+          Require all granted
+          Header always set Access-Control-Allow-Origin "*"
+        </Directory>
+
         Alias /cours ${coursDir}
         <Directory ${coursDir}>
           DirectoryIndex index.htm index.html
index 932623303fd674faf8106e03ea0b89195edfdc02..f307335e4be81cabcd194febfb617374fd13d800 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 932623303fd674faf8106e03ea0b89195edfdc02
+Subproject commit f307335e4be81cabcd194febfb617374fd13d800