aboutsummaryrefslogtreecommitdiff
path: root/modules/private/websites/immae
diff options
context:
space:
mode:
Diffstat (limited to 'modules/private/websites/immae')
-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
3 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