hippocampus: fix: mautrix-discord misc
This commit is contained in:
@@ -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}
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user