mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 14:01:34 +01:00
Refactor web services to use a unified web-services namespace
This commit is contained in:
parent
308ee43ec4
commit
02846ab16f
22 changed files with 103 additions and 99 deletions
|
|
@ -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,
|
||||
}]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue