wynne: add well-knowns for matrix
This commit is contained in:
parent
3ef7bb543b
commit
dcce094081
2 changed files with 36 additions and 0 deletions
35
hosts/wynne/services/apps/acomputer.lol.nix
Normal file
35
hosts/wynne/services/apps/acomputer.lol.nix
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
_: {
|
||||||
|
services = {
|
||||||
|
caddy.virtualHosts."acomputer.lol" = {
|
||||||
|
extraConfig = ''
|
||||||
|
handle /.well-known/matrix/server {
|
||||||
|
header Content-Type application/json
|
||||||
|
header Access-Control-Allow-Origin *
|
||||||
|
respond `{"m.server": "matrix.acomputer.lol:443"}`
|
||||||
|
}
|
||||||
|
|
||||||
|
handle /.well-known/matrix/client {
|
||||||
|
header Content-Type application/json
|
||||||
|
header Access-Control-Allow-Origin *
|
||||||
|
respond `{"m.homeserver": {"base_url": "https://matrix.acomputer.lol:443"}}`
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
frp.settings.proxies = [
|
||||||
|
{
|
||||||
|
name = "http.acomputer.lol";
|
||||||
|
type = "http";
|
||||||
|
customDomains = [ "acomputer.lol" ];
|
||||||
|
localPort = 80;
|
||||||
|
transport.useCompression = true;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "https.acomputer.lol";
|
||||||
|
type = "https";
|
||||||
|
customDomains = [ "acomputer.lol" ];
|
||||||
|
localPort = 443;
|
||||||
|
transport.useCompression = true;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,5 +1,6 @@
|
||||||
_: {
|
_: {
|
||||||
imports = [
|
imports = [
|
||||||
|
./acomputer.lol.nix
|
||||||
./postgresql.nix
|
./postgresql.nix
|
||||||
../../../shared/prometheus-exporters.nix
|
../../../shared/prometheus-exporters.nix
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue