fix(tuwunel): delegation
This commit is contained in:
@@ -18,52 +18,31 @@
|
|||||||
server_name = "imxyy.top";
|
server_name = "imxyy.top";
|
||||||
allow_registration = true;
|
allow_registration = true;
|
||||||
registration_token_file = config.sops.secrets.tuwunel-reg-token.path;
|
registration_token_file = config.sops.secrets.tuwunel-reg-token.path;
|
||||||
|
well_known = {
|
||||||
|
server = "matrix.imxyy.top:443";
|
||||||
|
client = "https://matrix.imxyy.top";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
services.caddy.virtualHosts."imxyy.top" = {
|
services.caddy.virtualHosts."imxyy.top" = {
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
handle /.well-known/matrix/client {
|
handle /.well-known/matrix/server {
|
||||||
header Content-Type application/json
|
header Content-Type application/json
|
||||||
header "Access-Control-Allow-Origin" "*"
|
header "Access-Control-Allow-Origin" "*"
|
||||||
|
|
||||||
respond `{"m.homeserver": {"base_url": "https://matrix.imxyy.top"}}` 200
|
respond `{"m.server": "matrix.imxyy.top:443"}` 200
|
||||||
}
|
}
|
||||||
'';
|
|
||||||
};
|
|
||||||
services.caddy.virtualHosts."imxyy.top:8448" = {
|
|
||||||
extraConfig = ''
|
|
||||||
reverse_proxy :8094
|
|
||||||
|
|
||||||
handle /.well-known/matrix/client {
|
handle /.well-known/matrix/client {
|
||||||
header Content-Type application/json
|
header Content-Type application/json
|
||||||
header "Access-Control-Allow-Origin" "*"
|
header "Access-Control-Allow-Origin" "*"
|
||||||
|
|
||||||
respond `{"m.homeserver": {"base_url": "https://matrix.imxyy.top"}}` 200
|
respond `{"m.homeserver": {"base_url": "https://matrix.imxyy.top/"}}` 200
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
services.caddy.virtualHosts."matrix.imxyy.top" = {
|
services.caddy.virtualHosts."matrix.imxyy.top" = {
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
reverse_proxy :8094
|
reverse_proxy :8094
|
||||||
|
|
||||||
handle /.well-known/matrix/client {
|
|
||||||
header Content-Type application/json
|
|
||||||
header "Access-Control-Allow-Origin" "*"
|
|
||||||
|
|
||||||
respond `{"m.homeserver": {"base_url": "https://matrix.imxyy.top"}}` 200
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
services.caddy.virtualHosts."matrix.imxyy.top:8448" = {
|
|
||||||
extraConfig = ''
|
|
||||||
reverse_proxy :8094
|
|
||||||
|
|
||||||
handle /.well-known/matrix/client {
|
|
||||||
header Content-Type application/json
|
|
||||||
header "Access-Control-Allow-Origin" "*"
|
|
||||||
|
|
||||||
respond `{"m.homeserver": {"base_url": "https://matrix.imxyy.top"}}` 200
|
|
||||||
}
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -405,13 +405,6 @@
|
|||||||
localPort = 443;
|
localPort = 443;
|
||||||
customDomains = [ "matrix.imxyy.top" ];
|
customDomains = [ "matrix.imxyy.top" ];
|
||||||
}
|
}
|
||||||
{
|
|
||||||
name = "matrix-fed";
|
|
||||||
type = "tcp";
|
|
||||||
localIP = "127.0.0.1";
|
|
||||||
localPort = 8448;
|
|
||||||
remotePort = 8448;
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
{
|
||||||
name = "immich-http";
|
name = "immich-http";
|
||||||
|
|||||||
Reference in New Issue
Block a user