parent
09d82c6b88
commit
01b5a0fe25
7 changed files with 44 additions and 34 deletions
|
@ -2,7 +2,7 @@
|
|||
let
|
||||
cfg = config.services.matrix-appservice-irc;
|
||||
bindPort = cfg.settings.ircService.mediaProxy.bindPort;
|
||||
upstreamUrl = "http://127.0.0.1:${toString bindPort}";
|
||||
upstreamUrl = "127.0.0.1:${toString bindPort}";
|
||||
in {
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
|
|
|
@ -50,7 +50,7 @@ in {
|
|||
# in client applications.
|
||||
settings.public_baseurl = baseUrl;
|
||||
settings.app_service_config_files = [
|
||||
"/var/lib/matrix-synapse/telegram-registration.yaml"
|
||||
#"/var/lib/matrix-synapse/telegram-registration.yaml"
|
||||
"/var/lib/matrix-synapse/irc-registration.yml"
|
||||
];
|
||||
settings.listeners = [
|
||||
|
|
|
@ -64,6 +64,9 @@
|
|||
"sr_mod"
|
||||
];
|
||||
|
||||
# FIXME
|
||||
networking.firewall.trustedInterfaces = [ "wg-infra" "vxl-infra" "br-infra" ];
|
||||
|
||||
systemd.network.links = {
|
||||
"10-phy1" = {
|
||||
matchConfig.MACAddress = "18:66:da:75:da:04";
|
||||
|
@ -114,19 +117,22 @@
|
|||
};
|
||||
wireguardPeers = [
|
||||
{
|
||||
PublicKey = "A+tXWigWNzrj0zAyg0MCSgP53ngH3kNsP5m8E+JbDmA=";
|
||||
PublicKey = "JfTsY3+jPTDgLDrECoSvoYs+6+GpjII0ookjhFhd5SY=";
|
||||
Endpoint = "89.234.162.224:51039";
|
||||
AllowedIPs = [ "fd0a:66d3:1c19:1000::2" ];
|
||||
PersistentKeepalive = 10;
|
||||
}
|
||||
{
|
||||
PublicKey = "77IPc//p+mSl1yeapuDd4tIZDRp5acOTmBF5V7dG4BA=";
|
||||
PublicKey = "nOeLgmE1U6nY3UNxltQKwlID9lD7fvpEwij2XUvEGgg=";
|
||||
Endpoint = "137.194.12.129:51039";
|
||||
AllowedIPs = [ "fd0a:66d3:1c19:1000::3" ];
|
||||
PersistentKeepalive = 10;
|
||||
}
|
||||
{
|
||||
PublicKey = "tUonMgyYxE5l1aee7iSBR6AwmuhITk3ystPhouUAMBc=";
|
||||
PublicKey = "9pGyE4+CQl+f8sFJ/Mkvp14yxDQJ0SJmGnher5Tgzjc=";
|
||||
Endpoint = "193.48.225.201:51039";
|
||||
AllowedIPs = [ "fd0a:66d3:1c19:1000::4" ];
|
||||
PersistentKeepalive = 10;
|
||||
}
|
||||
];
|
||||
};
|
||||
|
@ -156,6 +162,7 @@
|
|||
};
|
||||
"10-br-infra" = {
|
||||
matchConfig.Name = "br-infra";
|
||||
linkConfig.MACAddress = "9E:D8:78:A1:CE:22";
|
||||
address = [
|
||||
"fd0a:66d3:1c19:42::1/64"
|
||||
"10.42.0.1/16"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue