Fix synapse-admin
This commit is contained in:
parent
346a28cfc2
commit
e40336ab57
1 changed files with 8 additions and 6 deletions
14
caddy.nix
14
caddy.nix
|
@ -16,6 +16,10 @@ let
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
synapse-admin = pkgs.synapse-admin.override {
|
||||||
|
baseUrl = "https://matrix.catnip.ee";
|
||||||
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
services.caddy = {
|
services.caddy = {
|
||||||
|
@ -137,11 +141,14 @@ in
|
||||||
"sliding-sync.catnip.ee".extraConfig = ''
|
"sliding-sync.catnip.ee".extraConfig = ''
|
||||||
reverse_proxy :${toString settings.ports.matrix-sliding-sync}
|
reverse_proxy :${toString settings.ports.matrix-sliding-sync}
|
||||||
'';
|
'';
|
||||||
|
"synapse-admin.catnip.ee".extraConfig = ''
|
||||||
|
root * ${synapse-admin}
|
||||||
|
file_server
|
||||||
|
'';
|
||||||
"matrix.catnip.ee".extraConfig = ''
|
"matrix.catnip.ee".extraConfig = ''
|
||||||
reverse_proxy :${toString settings.ports.synapse}
|
reverse_proxy :${toString settings.ports.synapse}
|
||||||
|
|
||||||
redir /telegram /telegram/
|
redir /telegram /telegram/
|
||||||
redir /synapse-admin /synapse-admin/
|
|
||||||
|
|
||||||
handle /.well-known/matrix/client {
|
handle /.well-known/matrix/client {
|
||||||
header Content-Type application/json
|
header Content-Type application/json
|
||||||
|
@ -157,11 +164,6 @@ in
|
||||||
handle /telegram/* {
|
handle /telegram/* {
|
||||||
reverse_proxy :${toString settings.ports.mautrix-telegram}
|
reverse_proxy :${toString settings.ports.mautrix-telegram}
|
||||||
}
|
}
|
||||||
|
|
||||||
handle_path /synapse-admin/* {
|
|
||||||
root * ${pkgs.synapse-admin}
|
|
||||||
file_server
|
|
||||||
}
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
"ntfy.catnip.ee".extraConfig = ''
|
"ntfy.catnip.ee".extraConfig = ''
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue