44 lines
1.3 KiB
Nix
44 lines
1.3 KiB
Nix
{
|
|
services.caddy = {
|
|
virtualHosts = {
|
|
"datarift.nl" = {
|
|
extraConfig = ''
|
|
@webfinger-erwin {
|
|
path /.well-known/webfinger
|
|
query resource=acct:erwin@datarift.nl
|
|
}
|
|
respond @webfinger-erwin 200 {
|
|
body `{"subject":"acct:erwin@datarift.nl","links":[{"rel":"http://openid.net/specs/connect/1.0/issuer","href":"https://id.datarift.nl/realms/datarift"}]}`
|
|
close
|
|
}
|
|
'';
|
|
};
|
|
"git.datarift.nl" = {
|
|
extraConfig = ''
|
|
reverse_proxy gitea.barn-beaver.ts.net:3000
|
|
'';
|
|
};
|
|
|
|
"boskma.frl" = {
|
|
extraConfig = ''
|
|
header /.well-known/matrix/* Content-Type application/json
|
|
header /.well-known/matrix/* Access-Control-Allow-Origin *
|
|
respond /.well-known/matrix/server `{"m.server":"matrix.boskma.frl:443"}`
|
|
respond /.well-known/matrix/client `{"m.homeserver": {"base_url":"https://matrix.boskma.frl"},"org.matrix.msc3575.proxy":{"url":"https://syncv3.boskma.frl"}}`
|
|
'';
|
|
};
|
|
|
|
"matrix.boskma.frl" = {
|
|
extraConfig = ''
|
|
reverse_proxy /_matrix/* neo.barn-beaver.ts.net:8008
|
|
'';
|
|
};
|
|
|
|
"syncv3.boskma.frl" = {
|
|
extraConfig = ''
|
|
reverse_proxy / neo.barn-beaver.ts.net:8009
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
}
|