main
nix 22 lines 530 Bytes
Raw
1 { config, ... }:
2
3 {
4 age.secrets.owncast-admin-password = {
5 file = ../../../secrets/owncast-admin-password.age;
6 owner = "prometheus";
7 group = "prometheus";
8 };
9
10 services.prometheus.scrapeConfigs = [
11 {
12 job_name = "owncast";
13 metrics_path = "/api/admin/prometheus";
14 basic_auth = {
15 username = "admin";
16 password_file = config.age.secrets.owncast-admin-password.path;
17 };
18 scheme = "https";
19 static_configs = [ { targets = [ "live.nixos.org:443" ]; } ];
20 }
21 ];
22 }