hermes update
This commit is contained in:
@@ -53,17 +53,11 @@
|
||||
group_sessions_per_user = false;
|
||||
reactions = false;
|
||||
};
|
||||
|
||||
dashboard = {
|
||||
basic_auth = {
|
||||
username = "poslop";
|
||||
password_hash = "scrypt$16384$8$1$XpurTBPYAwR7lqHEXjmudg==$1tKObL9EWptqLNHjCyTX+phYB7Qp0RuIgF2X8C/jO0A=";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
8080
|
||||
9119
|
||||
8642
|
||||
];
|
||||
@@ -78,29 +72,12 @@
|
||||
};
|
||||
};
|
||||
|
||||
services = {
|
||||
hermes-dashboard = {
|
||||
description = "Hermes Agent Web Dashboard";
|
||||
after = [ "hermes-agent.service" ];
|
||||
bindsTo = [ "hermes-agent.service" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
ExecStart = "${pkgs.docker}/bin/docker exec -u hermes hermes-agent /data/current-package/bin/hermes dashboard --host 0.0.0.0 --port 9119 --no-open";
|
||||
Restart = "on-failure";
|
||||
RestartSec = 5;
|
||||
StartLimitIntervalSec = 60;
|
||||
StartLimitBurst = 3;
|
||||
};
|
||||
};
|
||||
|
||||
hermes-perms-maintenance = {
|
||||
description = "Fix hermes file permissions for gateway access";
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
ExecStartPre = "${pkgs.findutils}/bin/find /var/lib/hermes/.hermes/ -type d -not -perm -2770 -exec ${pkgs.coreutils}/bin/chmod 2770 {} +";
|
||||
ExecStart = "${pkgs.findutils}/bin/find /var/lib/hermes/.hermes/ -type f -not -perm -0660 -exec ${pkgs.coreutils}/bin/chmod 660 {} +";
|
||||
};
|
||||
services.hermes-perms-maintenance = {
|
||||
description = "Fix hermes file permissions for gateway access";
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
ExecStartPre = "${pkgs.findutils}/bin/find /var/lib/hermes/.hermes/ -type d -not -perm -2770 -exec ${pkgs.coreutils}/bin/chmod 2770 {} +";
|
||||
ExecStart = "${pkgs.findutils}/bin/find /var/lib/hermes/.hermes/ -type f -not -perm -0660 -exec ${pkgs.coreutils}/bin/chmod 660 {} +";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user