Add well-known stuff for Matrix

This commit is contained in:
Ben Visness 2021-09-09 11:00:10 -05:00
parent fdbe56c12b
commit 1b931ce92e
2 changed files with 12 additions and 0 deletions

View File

@ -5,6 +5,10 @@
<DOMAIN>, *.<DOMAIN> { <DOMAIN>, *.<DOMAIN> {
uri path_regexp ^/static/ /public/ uri path_regexp ^/static/ /public/
handle /.well-known/matrix/server {
respond "{\"m.server\": \"matrix.handmade.network:443\"}"
header Content-Type application/json
}
handle /public/* { handle /public/* {
file_server { file_server {
root /home/hmn/hmn root /home/hmn/hmn

View File

@ -24,6 +24,14 @@ edit-config: ## Edit the website config
@echo ' make deploy' @echo ' make deploy'
@echo '' @echo ''
edit-caddyfile: ## Edit the Caddyfile
vim /home/caddy/Caddyfile
@echo 'Now that you have edited the Caddyfile, you probably want to restart Caddy:'
@echo ''
@echo ' systemctl restart caddy'
@echo ''
@echo "Don't forget to copy your changes back to the repo when you're done."
logs: ## View logs for the website logs: ## View logs for the website
journalctl -u hmn.service -n 100 -f journalctl -u hmn.service -n 100 -f