paretosecurity: 0.2.31 -> 0.2.34

This commit is contained in:
Neyts Zupan 2025-06-12 13:36:38 +01:00
parent 190febec5b
commit 81a45ed1f7
2 changed files with 8 additions and 8 deletions

View File

@ -19,20 +19,20 @@
oldAttrs.postPatch or ""
+ ''
substituteInPlace team/report.go \
--replace-warn 'const reportURL = "https://dash.paretosecurity.com"' \
'const reportURL = "http://dashboard"'
--replace-warn 'const reportURL = "https://cloud.paretosecurity.com"' \
'const reportURL = "http://cloud"'
'';
});
};
};
nodes.dashboard = {
nodes.cloud = {
networking.firewall.allowedTCPPorts = [ 80 ];
services.nginx = {
enable = true;
virtualHosts."dashboard" = {
virtualHosts."cloud" = {
locations."/api/v1/team/".extraConfig = ''
add_header Content-Type application/json;
return 200 '{"message": "Linked device."}';
@ -72,7 +72,7 @@
testScript = ''
# Test setup
terminal.succeed("su - alice -c 'mkdir -p /home/alice/.config'")
for m in [terminal, dashboard]:
for m in [terminal, cloud]:
m.systemctl("start network-online.target")
m.wait_for_unit("network-online.target")

View File

@ -17,16 +17,16 @@ buildGoModule (finalAttrs: {
webkitgtk_4_1
];
pname = "paretosecurity";
version = "0.2.31";
version = "0.2.34";
src = fetchFromGitHub {
owner = "ParetoSecurity";
repo = "agent";
rev = finalAttrs.version;
hash = "sha256-dYQNSzovWCX7sj7VjgBc5GHz+5dKLTiB5pvbVSLMyqY=";
hash = "sha256-tTFdgLpu7RRWx2B2VMROqs1HgG0qMbfUOS5KNLQFHQw=";
};
vendorHash = "sha256-PhuHRs0PjIJqY3ZBC4ga7zFxgf57xfPjJ3VIDaA61F0=";
vendorHash = "sha256-RAKYaNi+MXUfNnEJmZF5g9jFBDOPIVBOZWtqZp2FwWY=";
proxyVendor = true;
# Skip building the Windows installer