Disable unnecessary synapse endpoint.
This commit is contained in:
parent
211da19fe6
commit
257dd1a0df
1 changed files with 3 additions and 18 deletions
|
@ -1,10 +1,6 @@
|
||||||
{ pkgs, config, ... }:
|
{ pkgs, config, ... }:
|
||||||
let
|
let hostName = "matrix.maralorn.de";
|
||||||
hostName = "matrix.maralorn.de";
|
|
||||||
inherit (config.m-0) hosts;
|
|
||||||
in {
|
in {
|
||||||
networking.firewall.allowedTCPPorts = [ 8448 ];
|
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
nginx = {
|
nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -82,24 +78,13 @@ in {
|
||||||
cp_max = 10;
|
cp_max = 10;
|
||||||
};
|
};
|
||||||
report_stats = true;
|
report_stats = true;
|
||||||
tls_certificate_path = "/var/lib/acme/${hostName}/fullchain.pem";
|
|
||||||
tls_private_key_path = "/var/lib/acme/${hostName}/key.pem";
|
|
||||||
listeners = [
|
listeners = [
|
||||||
{
|
{
|
||||||
type = "metrics";
|
type = "metrics";
|
||||||
port = 9148;
|
port = 9148;
|
||||||
bind_address = "127.0.0.1";
|
bind_address = "::1";
|
||||||
resources = [ ];
|
resources = [ ];
|
||||||
}
|
}
|
||||||
{
|
|
||||||
port = 8448;
|
|
||||||
bind_address = "::";
|
|
||||||
resources = [{
|
|
||||||
compress = false;
|
|
||||||
names = [ "federation" ];
|
|
||||||
}];
|
|
||||||
x_forwarded = false;
|
|
||||||
}
|
|
||||||
{
|
{
|
||||||
port = 8008;
|
port = 8008;
|
||||||
bind_address = "::1";
|
bind_address = "::1";
|
||||||
|
@ -124,7 +109,7 @@ in {
|
||||||
group = "matrix-synapse";
|
group = "matrix-synapse";
|
||||||
allowKeysForGroup = true;
|
allowKeysForGroup = true;
|
||||||
postRun =
|
postRun =
|
||||||
"systemctl reload nginx.service; systemctl restart matrix-synapse.service";
|
"systemctl reload nginx.service; systemctl restart matrix-synapse.service;";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue