aboutsummaryrefslogtreecommitdiff
path: root/dendrite/files/slackware
diff options
context:
space:
mode:
Diffstat (limited to 'dendrite/files/slackware')
-rw-r--r--dendrite/files/slackware/dendrite-httpd.conf33
-rw-r--r--dendrite/files/slackware/well-known-client.json5
-rw-r--r--dendrite/files/slackware/well-known-server.json3
3 files changed, 41 insertions, 0 deletions
diff --git a/dendrite/files/slackware/dendrite-httpd.conf b/dendrite/files/slackware/dendrite-httpd.conf
new file mode 100644
index 0000000..41cb426
--- /dev/null
+++ b/dendrite/files/slackware/dendrite-httpd.conf
@@ -0,0 +1,33 @@
+<VirtualHost _default_:443>
+ ServerName yourdomain.tld
+
+ AliasPreservePath On
+
+ Alias /.well-known/acme-challenge /var/www/dehydrated
+ <Directory /var/www/dehydrated>
+ Options None
+ AllowOverride None
+ Require all granted
+ </Directory>
+
+ <Location /_matrix>
+ ProxyPreserveHost on
+ ProxyPass http://localhost:8008/_matrix
+ </Location>
+
+
+ # Follow instructions for setting up dehydrated ssl certificates to have
+ # these SSL parameters working.
+ SSLEngine on
+ SSLCertificateFile "/etc/dehydrated/certs/yourdomain.tld/cert.pem"
+ SSLCertificateKeyFile "/etc/dehydrated/certs/yourdomain.tld/privkey.pem"
+ SSLCertificateChainFile "/etc/dehydrated/certs/yourdomain.tld/fullchain.pem"
+</VirtualHost>
+
+# For delegation to another domain i.e. host your matrix server under another
+# domain, place these files in the well-known directory of your root domain.
+# Then set the '<Location /_matrix>' under the virtual host of that domain.
+#
+# - Move 'well-known-client.json' to '/.well-known/matrix/client'.
+# - Move 'well-known-server.json' to '/.well-known/matrix/server'.
+#
diff --git a/dendrite/files/slackware/well-known-client.json b/dendrite/files/slackware/well-known-client.json
new file mode 100644
index 0000000..175f33a
--- /dev/null
+++ b/dendrite/files/slackware/well-known-client.json
@@ -0,0 +1,5 @@
+{
+ "m.homeserver": {
+ "base_url": "matrix.yourdomain.tld"
+ }
+}
diff --git a/dendrite/files/slackware/well-known-server.json b/dendrite/files/slackware/well-known-server.json
new file mode 100644
index 0000000..55c55ed
--- /dev/null
+++ b/dendrite/files/slackware/well-known-server.json
@@ -0,0 +1,3 @@
+{
+ "m.server": "matrix.yourdomain.tld:443"
+}