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

View File

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