added zed
This commit is contained in:
parent
d0b886ea3d
commit
4c7e8d8576
|
@ -15,6 +15,8 @@
|
|||
./services/mailserver.nix
|
||||
./services/fail2ban.nix
|
||||
|
||||
./services/zed.nix # IMPORTANTE
|
||||
|
||||
./services/auto-torrent.nix
|
||||
|
||||
./services/misc.nix
|
||||
|
|
44
services/homepage.nix
Normal file
44
services/homepage.nix
Normal file
|
@ -0,0 +1,44 @@
|
|||
{...}: let
|
||||
host = "127.0.0.1";
|
||||
port = 8082;
|
||||
in {
|
||||
services.homepage-dashboard = {
|
||||
enable = true;
|
||||
listenPort = port;
|
||||
openFirewall = false;
|
||||
widgets = [
|
||||
{
|
||||
resources = {
|
||||
cpu = true;
|
||||
disk = "/";
|
||||
memory = true;
|
||||
};
|
||||
}
|
||||
];
|
||||
|
||||
services = [
|
||||
{
|
||||
"WebUI" = [
|
||||
{
|
||||
"Jellyfin" = {
|
||||
description = "Jellyfin";
|
||||
href = "https://media.spoodythe.one";
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts."dashboard.spoodythe.one" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://${host}:${toString port}";
|
||||
};
|
||||
};
|
||||
|
||||
# Open port 80 and 443 for reverse proxy
|
||||
networking.firewall.allowedTCPPorts = [80 443];
|
||||
networking.firewall.allowedUDPPorts = [80 443];
|
||||
}
|
|
@ -32,6 +32,12 @@ in {
|
|||
forceSSL = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://${host}:${toString port}";
|
||||
|
||||
extraConfig = ''
|
||||
# Websocket support
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection $http_connection;
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
20
services/zed.nix
Normal file
20
services/zed.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{...}: {
|
||||
services.zfs.zed = {
|
||||
enable = true;
|
||||
settings = {
|
||||
ZED_DEBUG_LOG = "/tmp/zed.debug.log";
|
||||
ZED_EMAIL_ADDR = "snorre@altschul.dk";
|
||||
ZED_EMAIL_PROG = "sendmail";
|
||||
ZED_EMAIL_OPTS = "-s '@SUBJECT@' @ADDRESS@";
|
||||
|
||||
ZED_LOCKDIR = "/var/lock";
|
||||
ZED_NOTIFY_INTERVAL_SECS = 3600;
|
||||
|
||||
ZED_NOTIFY_VERBOSE = 0;
|
||||
|
||||
ZED_USE_ENCLOSURE_LEDS = 1;
|
||||
ZED_SYSLOG_PRIORITY = "daemon.notice";
|
||||
ZED_SYSLOG_TAG = "zed";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue