Refactor web services to use a unified web-services namespace

This commit is contained in:
SebastianStork 2025-12-28 19:22:34 +01:00
parent 308ee43ec4
commit 02846ab16f
Signed by: SebastianStork
SSH key fingerprint: SHA256:tRrGdjYOwgHxpSc/wTOZQZEjxcb15P0tyXRsbAfd+2Q
22 changed files with 103 additions and 99 deletions

View file

@ -1,9 +1,9 @@
{ config, lib, ... }:
let
cfg = config.custom.services.alloy;
cfg = config.custom.web-services.alloy;
in
{
options.custom.services.alloy = {
options.custom.web-services.alloy = {
enable = lib.mkEnableOption "";
domain = lib.mkOption {
type = lib.types.nonEmptyStr;
@ -121,7 +121,7 @@ in
text = ''
prometheus.scrape "victorialogs" {
targets = [{
__address__ = "localhost:${toString config.custom.services.victorialogs.port}",
__address__ = "localhost:${toString config.custom.web-services.victorialogs.port}",
job = "victorialogs",
instance = constants.hostname,
}]