forked from input-output-hk/cardano-ops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
globals-defaults.nix
62 lines (47 loc) · 1.67 KB
/
globals-defaults.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
pkgs:
let
requireEnv = name:
let value = builtins.getEnv name;
in if value == "" then
abort "${name} environment variable is not set"
else
value;
in {
static = import ./static;
deploymentName = "${builtins.baseNameOf ./.}";
environmentName = pkgs.globals.deploymentName;
sourcesJsonOverride = ./nix + "/sources.${pkgs.globals.environmentName}.json";
dnsZone = "dev.cardano.org";
domain = "${pkgs.globals.deploymentName}.${pkgs.globals.dnsZone}";
relaysNew = pkgs.globals.environmentConfig.relaysNew or "relays-new.${pkgs.globals.domain}";
explorerHostName = "explorer";
explorerForceSSL = true;
explorerAliases = [];
maxPrivilegedRelays = 48;
withMonitoring = true;
withExplorer = true;
withLegacyExplorer = false;
withCardanoDBExtended = true;
withFaucet = false;
withFaucetOptions = {};
initialPythonExplorerDBSyncDone = false;
withHighCapacityMonitoring = false;
withHighCapacityExplorer = false;
withHighLoadRelays = false;
environments = pkgs.iohkNix.cardanoLib.environments;
environmentConfig = pkgs.globals.environments.${pkgs.globals.environmentName};
deployerIp = requireEnv "DEPLOYER_IP";
cardanoNodePort = 3001;
cardanoNodeLegacyPort = 3000;
cardanoNodePrometheusExporterPort = 12798;
byronProxyPrometheusExporterPort = 12799;
cardanoExplorerPrometheusExporterPort = 8080;
cardanoExplorerPythonApiPrometheusExporterPort = 7001;
netdataExporterPort = 19999;
extraPrometheusExportersPorts = [
pkgs.globals.cardanoNodePrometheusExporterPort
pkgs.globals.byronProxyPrometheusExporterPort
pkgs.globals.cardanoExplorerPrometheusExporterPort
pkgs.globals.netdataExporterPort
];
}