aboutsummaryrefslogtreecommitdiff
path: root/dendrite/files/slackware/dendrite-httpd.conf
diff options
context:
space:
mode:
Diffstat (limited to 'dendrite/files/slackware/dendrite-httpd.conf')
-rw-r--r--dendrite/files/slackware/dendrite-httpd.conf33
1 files changed, 33 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'.
+#