summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
m---------nixpkgs0
-rw-r--r--odin/strm.nix3
-rw-r--r--ymir.nix29
3 files changed, 30 insertions, 2 deletions
diff --git a/nixpkgs b/nixpkgs
Subproject 5494bdc14fff3acacd3653e5a44c1346018332b Subproject c128f8c4700aed57e5a18cfb7f59abe40a994a1
diff --git a/odin/strm.nix b/odin/strm.nix
index 8fe4a68b..e0eb2696 100644
--- a/odin/strm.nix
+++ b/odin/strm.nix
@@ -5,7 +5,8 @@
5 5
6let 6let
7 manual-youtube = buildPerlPackage { 7 manual-youtube = buildPerlPackage {
8 name = "manual_youtube"; 8 version = "0.0.0";
9 pname = "manual_youtube";
9 10
10 src = ./strm/manual_youtube; 11 src = ./strm/manual_youtube;
11 12
diff --git a/ymir.nix b/ymir.nix
index 417850f2..dc759c51 100644
--- a/ymir.nix
+++ b/ymir.nix
@@ -195,6 +195,10 @@ in rec {
195 ]; 195 ];
196 allowedUDPPortRanges = [ { from = 60000; to = 61000; } # mosh 196 allowedUDPPortRanges = [ { from = 60000; to = 61000; } # mosh
197 ]; 197 ];
198
199 interfaces.yggdrasil.allowedTCPPorts =
200 [ 11332 # rspamd
201 ];
198 }; 202 };
199 enableIPv6 = true; 203 enableIPv6 = true;
200 interfaces."ens3" = { 204 interfaces."ens3" = {
@@ -1084,7 +1088,8 @@ in rec {
1084 enable = true; 1088 enable = true;
1085 workers = { 1089 workers = {
1086 controller = {}; 1090 controller = {};
1087 rspamd_proxy = { 1091 external = {
1092 type = "rspamd_proxy";
1088 bindSockets = [ 1093 bindSockets = [
1089 { mode = "0660"; 1094 { mode = "0660";
1090 socket = "/var/lib/postfix/queue/private/rspamd"; 1095 socket = "/var/lib/postfix/queue/private/rspamd";
@@ -1099,6 +1104,19 @@ in rec {
1099 } 1104 }
1100 ''; 1105 '';
1101 }; 1106 };
1107 internal = {
1108 type = "rspamd_proxy";
1109 bindSockets = [
1110 "ymir.niflheim.yggdrasil:11332"
1111 ];
1112 extraConfig = ''
1113 upstream "local" {
1114 default = yes;
1115 self_scan = yes;
1116 id = "internal";
1117 }
1118 '';
1119 };
1102 }; 1120 };
1103 locals = { 1121 locals = {
1104 "milter_headers.conf".text = '' 1122 "milter_headers.conf".text = ''
@@ -1149,6 +1167,15 @@ in rec {
1149 spam = true; 1167 spam = true;
1150 } 1168 }
1151 ''; 1169 '';
1170 "settings.conf".text = ''
1171 internal {
1172 apply {
1173 actions {
1174 add_header = 10;
1175 }
1176 }
1177 }
1178 '';
1152 }; 1179 };
1153 }; 1180 };
1154 1181