New host for Caddy reverse proxy
This commit is contained in:
parent
e5f47681ae
commit
dcac67e097
15 changed files with 222 additions and 132 deletions
|
|
@ -1,8 +1,7 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
{ config
|
||||
, pkgs
|
||||
, lib
|
||||
, ...
|
||||
}:
|
||||
let
|
||||
tailscaleMagicDNS = "neon-dory.ts.net";
|
||||
|
|
@ -18,20 +17,20 @@ in
|
|||
|
||||
services.media-mgr = {
|
||||
exportMetrics.enable = true;
|
||||
proxy = {
|
||||
enable = true;
|
||||
domain = "tegola.pro";
|
||||
host = "arr.internal";
|
||||
};
|
||||
# proxy = {
|
||||
# enable = true;
|
||||
# domain = "tegola.pro";
|
||||
# host = "arr.internal";
|
||||
# };
|
||||
};
|
||||
|
||||
monitoring = {
|
||||
prometheus = {
|
||||
enable = true;
|
||||
proxy = {
|
||||
domain = "tegola.pro";
|
||||
host = "metrics.internal";
|
||||
};
|
||||
# proxy = {
|
||||
# domain = "tegola.pro";
|
||||
# host = "metrics.internal";
|
||||
# };
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -42,7 +41,7 @@ in
|
|||
authKeyFile = config.age.secrets.tailscale-authKey.path;
|
||||
};
|
||||
|
||||
caddy.enable = true;
|
||||
# caddy.enable = true;
|
||||
};
|
||||
|
||||
virtualisation = {
|
||||
|
|
@ -60,11 +59,17 @@ in
|
|||
|
||||
prometheus.scrapeConfigs = [
|
||||
{
|
||||
job_name = "metrics-host";
|
||||
job_name = "host-metrics";
|
||||
static_configs = [
|
||||
{ targets = [ "localhost:${toString config.services.prometheus.exporters.node.port}" ]; }
|
||||
];
|
||||
}
|
||||
{
|
||||
job_name = "host-caddy";
|
||||
static_configs = [
|
||||
{ targets = [ "caddy.internal:${toString config.services.prometheus.exporters.node.port}" ]; }
|
||||
];
|
||||
}
|
||||
];
|
||||
|
||||
prometheus.exporters = {
|
||||
|
|
@ -75,7 +80,7 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
networking.nameservers = [ "192.168.1.2" ];
|
||||
# networking.nameservers = [ "192.168.1.2" ];
|
||||
|
||||
system.stateVersion = "24.05";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue