mirror of
https://forge.katzen.cafe/katzen-cafe/katzen-cafe.git
synced 2024-11-24 06:48:44 +01:00
idk get sliding sync stuffs working
This commit is contained in:
parent
536ed2f421
commit
7d126b7bda
|
@ -1,12 +1,10 @@
|
||||||
{ config
|
{
|
||||||
, pkgsUnstable
|
config,
|
||||||
, inputs
|
pkgsUnstable,
|
||||||
, ...
|
inputs,
|
||||||
}:
|
...
|
||||||
|
}: let
|
||||||
let
|
|
||||||
# You'll need to edit these values
|
# You'll need to edit these values
|
||||||
|
|
||||||
# The hostname that will appear in your user and room IDs
|
# The hostname that will appear in your user and room IDs
|
||||||
server_name = "katzen.cafe";
|
server_name = "katzen.cafe";
|
||||||
|
|
||||||
|
@ -35,12 +33,13 @@ let
|
||||||
{
|
{
|
||||||
"m.homeserver": {
|
"m.homeserver": {
|
||||||
"base_url": "https://${matrix_hostname}"
|
"base_url": "https://${matrix_hostname}"
|
||||||
|
},
|
||||||
|
"org.matrix.msc3575.proxy": {
|
||||||
|
"url": "https://${matrix_hostname}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
in
|
in {
|
||||||
|
|
||||||
{
|
|
||||||
# Configure Conduit itself
|
# Configure Conduit itself
|
||||||
services.matrix-conduit = {
|
services.matrix-conduit = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -94,7 +93,8 @@ in
|
||||||
addr = "[::]";
|
addr = "[::]";
|
||||||
port = 443;
|
port = 443;
|
||||||
ssl = true;
|
ssl = true;
|
||||||
} {
|
}
|
||||||
|
{
|
||||||
addr = "0.0.0.0";
|
addr = "0.0.0.0";
|
||||||
port = 8448;
|
port = 8448;
|
||||||
ssl = true;
|
ssl = true;
|
||||||
|
@ -152,13 +152,13 @@ in
|
||||||
upstreams = {
|
upstreams = {
|
||||||
"backend_conduit" = {
|
"backend_conduit" = {
|
||||||
servers = {
|
servers = {
|
||||||
"[::1]:${toString config.services.matrix-conduit.settings.global.port}" = { };
|
"[::1]:${toString config.services.matrix-conduit.settings.global.port}" = {};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Open firewall ports for HTTP, HTTPS, and Matrix federation
|
# Open firewall ports for HTTP, HTTPS, and Matrix federation
|
||||||
networking.firewall.allowedTCPPorts = [ 80 443 8448 ];
|
networking.firewall.allowedTCPPorts = [80 443 8448];
|
||||||
networking.firewall.allowedUDPPorts = [ 80 443 8448 ];
|
networking.firewall.allowedUDPPorts = [80 443 8448];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue