Add metrics-nekomesh host
This commit is contained in:
parent
1ad857a33a
commit
3fcd427251
10 changed files with 138 additions and 0 deletions
36
config/hosts/metrics-nekomesh/grafana.nix
Normal file
36
config/hosts/metrics-nekomesh/grafana.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
services.grafana = {
|
||||
enable = true;
|
||||
settings = {
|
||||
server = {
|
||||
domain = "nekomesh.nekover.se";
|
||||
root_url = "https://${config.services.grafana.settings.server.domain}";
|
||||
};
|
||||
security = {
|
||||
cookie_secure = true;
|
||||
cookie_samesite = "strict";
|
||||
admin_user = "fi";
|
||||
admin_password = "$__file{/secrets/metrics-nekomesh-grafana-admin-password.secret}";
|
||||
admin_email = "fi@nekover.se";
|
||||
};
|
||||
smtp = {
|
||||
enabled = true;
|
||||
host = "mail.grzb.de:465";
|
||||
user = "nekomesh@grzb.de";
|
||||
password = "$__file{/secrets/mail-nekomesh-nekover-se.secret}";
|
||||
from_address = "nyareply@nekover.se";
|
||||
from_name = "Nekomesh";
|
||||
startTLS_policy = "NoStartTLS";
|
||||
};
|
||||
};
|
||||
provision.datasources.settings.datasources = [
|
||||
{
|
||||
name = "Prometheus";
|
||||
type = "prometheus";
|
||||
url = "http://localhost:${builtins.toString config.services.prometheus.port}";
|
||||
isDefault = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue