Add well-known stuff for Matrix
This commit is contained in:
parent
fdbe56c12b
commit
1b931ce92e
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Reference in New Issue