feat(selfhost/glances): adding a monitor to my server
This commit is contained in:
parent
e881327e72
commit
0c1fd449ad
4 changed files with 35 additions and 0 deletions
19
services/self_host/monitor.nix
Normal file
19
services/self_host/monitor.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
cfg = config.service.selfhost.monitor;
|
||||
in
|
||||
{
|
||||
services = {
|
||||
glances.enable = true;
|
||||
|
||||
nginx.virtualHosts."monitor.enium.eu" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:61208";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue