aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2021-07-09 17:57:31 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2021-07-09 17:57:31 +0200
commit57a421133a011d99d4fbfc5342686a68a890f573 (patch)
tree04a6a021e2f93649e278e0bfcd2384eeb5d74cff
parent2256f2e2ac90edb0fc5dd8de96f4e7bf2aa14d65 (diff)
downloadNix-57a421133a011d99d4fbfc5342686a68a890f573.tar.gz
Nix-57a421133a011d99d4fbfc5342686a68a890f573.tar.zst
Nix-57a421133a011d99d4fbfc5342686a68a890f573.zip
Add matrix configuration
-rw-r--r--modules/private/websites/immae/matrix/client8
-rw-r--r--modules/private/websites/immae/matrix/server3
-rw-r--r--modules/private/websites/immae/production.nix8
m---------nixops/secrets0
4 files changed, 19 insertions, 0 deletions
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 @@
1{
2 "m.homeserver": {
3 "base_url": "https://immae.ems.host"
4 },
5 "m.identity_server": {
6 "base_url": "https://vector.im"
7 }
8}
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 @@
1{
2 "m.server": "immae.ems.host:443"
3}
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 {
50 Require all granted 50 Require all granted
51 </Directory> 51 </Directory>
52 52
53 Alias /.well-known/matrix ${./matrix}
54 <Directory ${./matrix}>
55 Options Indexes FollowSymLinks MultiViews Includes
56 AllowOverride None
57 Require all granted
58 Header always set Access-Control-Allow-Origin "*"
59 </Directory>
60
53 Alias /cours ${coursDir} 61 Alias /cours ${coursDir}
54 <Directory ${coursDir}> 62 <Directory ${coursDir}>
55 DirectoryIndex index.htm index.html 63 DirectoryIndex index.htm index.html
diff --git a/nixops/secrets b/nixops/secrets
Subproject 932623303fd674faf8106e03ea0b89195edfdc0 Subproject f307335e4be81cabcd194febfb617374fd13d80