added nginx autoproxy for exposes config, needs some refactoring
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Vivian 2023-05-04 16:19:01 +02:00
parent fa5bda60be
commit af893b9e43
3 changed files with 106 additions and 95 deletions

View file

@ -20,15 +20,15 @@ let
};
};
in {
options = {
meta.exposes = mkOption {
options.meta = {
exposes = mkOption {
type = with types; attrsOf (submodule exposesOpts);
description = ''
Exposed services
'';
};
meta.ipv4 = mkOption {
ipv4 = mkOption {
type = types.str;
description = ''
Own IPv4 Address

View file

@ -2,7 +2,7 @@
with lib;
let
cfg = config.services.v.vault;
hostIP = config.deployment.targetHost;
hostIP = config.meta.ipv4;
# Find all vault hosts that do not have the same IP as the current host
vault_hosts =