29 lines
747 B
Nix
29 lines
747 B
Nix
|
{ ... }:
|
||
|
{
|
||
|
services.grafana = {
|
||
|
enable = true;
|
||
|
settings = {
|
||
|
server = {
|
||
|
domain = "grafana2.grzb.de";
|
||
|
root_url = "https://grafana2.grzb.de";
|
||
|
};
|
||
|
security = {
|
||
|
cookie_secure = true;
|
||
|
cookie_samesite = "strict";
|
||
|
admin_user = "yuri";
|
||
|
admin_password = "$__file{/secrets/metrics-grafana-admin-password.secret}";
|
||
|
admin_email = "yuri@nekover.se";
|
||
|
};
|
||
|
smtp = {
|
||
|
enabled = true;
|
||
|
host = "mail.grzb.de:465";
|
||
|
user = "grafana";
|
||
|
password = "$__file{/secrets/metrics-grafana-smtp-password.secret}";
|
||
|
from_address = "grafana@robot.grzb.de";
|
||
|
from_name = "Grafana";
|
||
|
startTLS_policy = "NoStartTLS";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|