dendrite-httpd.conf (1090B)
1 <VirtualHost _default_:443> 2 ServerName yourdomain.tld 3 4 AliasPreservePath On 5 6 Alias /.well-known/acme-challenge /var/www/dehydrated 7 <Directory /var/www/dehydrated> 8 Options None 9 AllowOverride None 10 Require all granted 11 </Directory> 12 13 <Location /_matrix> 14 ProxyPreserveHost on 15 ProxyPass http://localhost:8008/_matrix 16 </Location> 17 18 19 # Follow instructions for setting up dehydrated ssl certificates to have 20 # these SSL parameters working. 21 SSLEngine on 22 SSLCertificateFile "/etc/dehydrated/certs/yourdomain.tld/cert.pem" 23 SSLCertificateKeyFile "/etc/dehydrated/certs/yourdomain.tld/privkey.pem" 24 SSLCertificateChainFile "/etc/dehydrated/certs/yourdomain.tld/fullchain.pem" 25 </VirtualHost> 26 27 # For delegation to another domain i.e. host your matrix server under another 28 # domain, place these files in the well-known directory of your root domain. 29 # Then set the '<Location /_matrix>' under the virtual host of that domain. 30 # 31 # - Move 'well-known-client.json' to '/.well-known/matrix/client'. 32 # - Move 'well-known-server.json' to '/.well-known/matrix/server'. 33 #