Add Vaultwarden nginx + prometheus config for crowdsec

This commit is contained in:
Théo Barnouin 2025-04-14 11:48:26 +02:00
parent 2513d163e9
commit 3a9723603b
2 changed files with 17 additions and 0 deletions

View file

@ -212,6 +212,15 @@ in {
} }
]; ];
} }
{
job_name = "jellyfin_metrics";
metrics_path = "/metrics";
static_configs = [
{
targets = ["192.168.1.42:8096"];
}
];
}
{ {
job_name = "crowdsec_jellyfin"; job_name = "crowdsec_jellyfin";
static_configs = [ static_configs = [

View file

@ -149,6 +149,14 @@ in {
proxyPass = "http://192.168.1.42:8096"; proxyPass = "http://192.168.1.42:8096";
recommendedProxySettings = true; recommendedProxySettings = true;
}; };
locations."/metrics" = {
proxyPass = "http://192.168.1.42:8096/metrics";
recommendedProxySettings = true;
extraConfig = ''
allow 192.168.1.0/24;
deny all;
'';
};
}; };
"requests.le43.eu" = { "requests.le43.eu" = {
forceSSL = true; forceSSL = true;