mirror of https://gitlab.crans.org/nounous/nixos
Merge branch 'matrix-server-notice' into 'main'
Matrix server notice See merge request nounous/nixos!36merge-requests/36/merge
commit
a412424abd
|
|
@ -33,6 +33,7 @@
|
||||||
443
|
443
|
||||||
8008
|
8008
|
||||||
8448
|
8448
|
||||||
|
9009
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -47,6 +48,7 @@
|
||||||
server_name = "crans.org";
|
server_name = "crans.org";
|
||||||
|
|
||||||
report_stats = false;
|
report_stats = false;
|
||||||
|
enable_metrics = true;
|
||||||
|
|
||||||
public_baseurl = "https://matrix.crans.org/";
|
public_baseurl = "https://matrix.crans.org/";
|
||||||
|
|
||||||
|
|
@ -71,6 +73,22 @@
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
port = 9009;
|
||||||
|
bind_addresses = [
|
||||||
|
"::1"
|
||||||
|
"127.0.0.1"
|
||||||
|
];
|
||||||
|
type = "metrics";
|
||||||
|
x_forwarded = true;
|
||||||
|
tls = false;
|
||||||
|
resources = [
|
||||||
|
{
|
||||||
|
names = [ "metrics" ];
|
||||||
|
compress = false;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
database = {
|
database = {
|
||||||
|
|
@ -115,6 +133,20 @@
|
||||||
app_service_config_files = [
|
app_service_config_files = [
|
||||||
"/var/lib/matrix-appservice-irc/registration.yml"
|
"/var/lib/matrix-appservice-irc/registration.yml"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
auto_join_rooms = [ "#root-space:crans.org" ];
|
||||||
|
|
||||||
|
# https://element-hq.github.io/synapse/latest/server_notices.html
|
||||||
|
server_notices = {
|
||||||
|
system_mxid_localpart = "annonces";
|
||||||
|
system_mxid_display_name = "Annonces";
|
||||||
|
# c'est une image envoye dans un salon qui appartient à Lzebulon...
|
||||||
|
system_mxid_avatar_url = "mxc://crans.org/LGFNjmEqqWCIEUFGIptHtSSM";
|
||||||
|
room_name = "Annonces";
|
||||||
|
room_avatar_url = "mxc://crans.org/LGFNjmEqqWCIEUFGIptHtSSM";
|
||||||
|
room_topic = "Salon utilisé par les administrateurs du serveur pour vous envoyer des informations importantes";
|
||||||
|
auto_join = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
extraConfigFiles = [
|
extraConfigFiles = [
|
||||||
|
|
@ -194,6 +226,15 @@
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
locations."/_synapse/metrics" = {
|
||||||
|
proxyPass = "http://localhost:9009";
|
||||||
|
extraConfig = ''
|
||||||
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
locations."/media" = {
|
locations."/media" = {
|
||||||
proxyPass = "http://localhost:11111";
|
proxyPass = "http://localhost:11111";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
|
|
|
||||||
|
|
@ -20,10 +20,14 @@
|
||||||
feature_group_calls = true;
|
feature_group_calls = true;
|
||||||
feature_element_call_video_rooms = true;
|
feature_element_call_video_rooms = true;
|
||||||
};
|
};
|
||||||
|
oidc_static_clients = {
|
||||||
|
"https://note.crans.org/o/" = {
|
||||||
|
client_id = "iLfIXR823xLKmLJvk0hJsIJNaozkExH4MllZldIH";
|
||||||
|
};
|
||||||
|
};
|
||||||
# https://github.com/element-hq/element-web/blob/develop/docs/jitsi.md
|
# https://github.com/element-hq/element-web/blob/develop/docs/jitsi.md
|
||||||
"jitsi" = {
|
jitsi = {
|
||||||
"preferred_domain" = "jitsi.crans.org";
|
preferred_domain = "jitsi.crans.org";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue