aboutsummaryrefslogtreecommitdiff
path: root/dendrite/files/slackware/dendrite-httpd.conf
blob: 41cb426309913d621275ddf7e2dc7c04c56e0cf0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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'.
#