Watch
0
0
Fork
You've already forked hyperhive
0

Compare commits

..
3 changed files with 5 additions and 9 deletions

View file

@ -99,10 +99,8 @@ let
unitName = "authelia-${instance}"; unitName = "authelia-${instance}";
stateDir = "/var/lib/${unitName}"; stateDir = "/var/lib/${unitName}";
caTrust = import ./lib/hive-ca-trust.nix { tlsCfg = hyperhiveCfg.tls;
inherit lib gatewayCfg; caTrust = import ./lib/hive-ca-trust.nix { inherit lib tlsCfg gatewayCfg; };
tlsCfg = deployCfg.hive-controller.tls;
};
# `swarm-authelia-bridge` verifies the gateway when it introspects by name. # `swarm-authelia-bridge` verifies the gateway when it introspects by name.
# Nothing in this container trusted the swarm CA, which is a runtime file no # Nothing in this container trusted the swarm CA, which is a runtime file no
# build-time option can name — so an https call out of here could only ever # build-time option can name — so an https call out of here could only ever

View file

@ -20,15 +20,13 @@ let
networkCfg = config.services.hyperhive.network; networkCfg = config.services.hyperhive.network;
hyperhiveCfg = config.services.hyperhive; hyperhiveCfg = config.services.hyperhive;
gatewayCfg = hyperhiveCfg.gateway; gatewayCfg = hyperhiveCfg.gateway;
tlsCfg = hyperhiveCfg.tls;
autheliaCfg = hyperhiveCfg.swarm.authelia; autheliaCfg = hyperhiveCfg.swarm.authelia;
vmCfg = hyperhiveCfg.swarm.victoriametrics; vmCfg = hyperhiveCfg.swarm.victoriametrics;
vlCfg = hyperhiveCfg.swarm.victorialogs; vlCfg = hyperhiveCfg.swarm.victorialogs;
swarmDomain = hyperhiveCfg.swarm.domain; swarmDomain = hyperhiveCfg.swarm.domain;
caTrust = import ./lib/hive-ca-trust.nix { caTrust = import ./lib/hive-ca-trust.nix { inherit lib tlsCfg gatewayCfg; };
inherit lib gatewayCfg;
tlsCfg = deployCfg.hive-controller.tls;
};
# Spelled ONCE. The provisioned datasource declares it and every panel in the # Spelled ONCE. The provisioned datasource declares it and every panel in the
# provisioned dashboards references it; a second literal would be free to # provisioned dashboards references it; a second literal would be free to

View file

@ -163,7 +163,7 @@ let
# `security.pki.certificateFiles`. # `security.pki.certificateFiles`.
caTrust = import ./lib/hive-ca-trust.nix { caTrust = import ./lib/hive-ca-trust.nix {
inherit lib; inherit lib;
tlsCfg = deployCfg.hive-controller.tls; tlsCfg = hyperhiveCfg.tls;
inherit gatewayCfg; inherit gatewayCfg;
}; };