added nginx autoproxy for exposes config, needs some refactoring
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
fa5bda60be
commit
af893b9e43
3 changed files with 106 additions and 95 deletions
|
@ -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
|
||||
|
|
|
@ -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 =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue