hippocampus: fix: mautrix-discord misc

This commit is contained in:
2026-03-23 21:14:39 -04:00
parent d7b3c180df
commit 6d2cc86b65
2 changed files with 8 additions and 6 deletions

View File

@@ -9,11 +9,12 @@ in {
ensureDatabases = [
mautrix-discord-user
];
ensureUsers = {
"${mautrix-discord-user}" = {
ensureUsers = [
{
name = "${mautrix-discord-user}";
ensureDBOwnership = true;
};
};
}
];
};
services.mautrix-discord = {
enable = true;
@@ -367,7 +368,7 @@ in {
};
appservice = {
# The address that the homeserver can use to connect to this appservice.
address = "http://localhost:${config.services.mautrix-discord.settings.appservice.port}";
address = "http://localhost:${toString config.services.mautrix-discord.settings.appservice.port}";
# The hostname and port where this appservice should listen.
hostname = "0.0.0.0";
@@ -430,7 +431,7 @@ in {
services.caddy.virtualHosts = {
"${config.services.mautrix-discord.settings.bridge.direct_media.server_name}" = {
extraConfig = ''
reverse_proxy localhost:${config.services.mautrix-discord.settings.appservice.port}
reverse_proxy localhost:${toString config.services.mautrix-discord.settings.appservice.port}
'';
};
};