Handle 404 in Caddy
This commit is contained in:
parent
3a561cd1aa
commit
11d6faae70
2 changed files with 43 additions and 34 deletions
|
|
@ -23,27 +23,29 @@
|
|||
## Matrix federation
|
||||
virtualHosts = {
|
||||
"jankremer.de:8448" = {
|
||||
extraConfig = ''
|
||||
reverse_proxy localhost:6167
|
||||
'';
|
||||
extraConfig = # caddyfile
|
||||
''
|
||||
reverse_proxy localhost:6167
|
||||
'';
|
||||
};
|
||||
"jankremer.de" = {
|
||||
extraConfig = ''
|
||||
handle /_matrix/* {
|
||||
reverse_proxy localhost:6167
|
||||
}
|
||||
extraConfig = # caddyfile
|
||||
''
|
||||
handle /_matrix/* {
|
||||
reverse_proxy localhost:6167
|
||||
}
|
||||
|
||||
handle /.well-known/matrix/server {
|
||||
header Content-Type application/json
|
||||
respond `{"m.server": "jankremer.de:443"}` 200
|
||||
}
|
||||
handle /.well-known/matrix/server {
|
||||
header Content-Type application/json
|
||||
respond `{"m.server": "jankremer.de:443"}` 200
|
||||
}
|
||||
|
||||
handle /.well-known/matrix/client {
|
||||
header Content-Type application/json
|
||||
header Access-Control-Allow-Origin *
|
||||
respond `{"m.homeserver": {"base_url": "https://jankremer.de"}}` 200
|
||||
}
|
||||
'';
|
||||
handle /.well-known/matrix/client {
|
||||
header Content-Type application/json
|
||||
header Access-Control-Allow-Origin *
|
||||
respond `{"m.homeserver": {"base_url": "https://jankremer.de"}}` 200
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue