add fw-new
This commit is contained in:
@@ -137,6 +137,18 @@
|
||||
];
|
||||
labels.host = "web-01.cloonar.com";
|
||||
}
|
||||
{
|
||||
targets = [
|
||||
"web-arm.cloonar.com:9273"
|
||||
];
|
||||
labels.host = "web-arm.cloonar.com";
|
||||
}
|
||||
{
|
||||
targets = [
|
||||
"fw.cloonar.com:9273"
|
||||
];
|
||||
labels.host = "fw.cloonar.com";
|
||||
}
|
||||
{
|
||||
targets = [
|
||||
"mail.cloonar.com:9273"
|
||||
@@ -158,6 +170,8 @@
|
||||
{
|
||||
targets = map (host: "${host}.cloonar.com:9273") [
|
||||
"web-01"
|
||||
"web-arm"
|
||||
"fw"
|
||||
"mail"
|
||||
"git"
|
||||
"home-assistant"
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
let
|
||||
configure_prom = builtins.toFile "prometheus.yml" ''
|
||||
scrape_configs:
|
||||
- job_name: '${config.networking.hostName}'
|
||||
- job_name: 'server'
|
||||
stream_parse: true
|
||||
static_configs:
|
||||
- targets:
|
||||
- 127.0.0.1:9100
|
||||
- ${config.networking.hostName}:9100
|
||||
'';
|
||||
in {
|
||||
services.prometheus.exporters.node.enable = true;
|
||||
|
||||
@@ -185,7 +185,7 @@ in
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
acmeRoot = null;
|
||||
root = cfg.dataDir + "/" + domain + "/public";
|
||||
root = cfg.dataDir + "/" + domain + "/current/public";
|
||||
serverAliases = instanceOpts.domainAliases;
|
||||
|
||||
extraConfig = ''
|
||||
|
||||
Reference in New Issue
Block a user