move data-hoarder postgres to registry
This commit is contained in:
parent
a278d40551
commit
0b67c90d2a
|
@ -2,13 +2,7 @@
|
|||
TLMS.chemo = {
|
||||
inherit (registry.grpc-data_accumulator-chemo) host port;
|
||||
enable = true;
|
||||
database = {
|
||||
host = "127.0.0.1";
|
||||
port = config.services.postgresql.port;
|
||||
passwordFile = config.sops.secrets.postgres_password.path;
|
||||
user = "tlms";
|
||||
database = "tlms";
|
||||
};
|
||||
database = registry.postgres;
|
||||
GRPC = [
|
||||
{
|
||||
inherit (registry.grpc-chemo-bureaucrat) host port;
|
||||
|
|
|
@ -2,13 +2,7 @@
|
|||
TLMS.dataAccumulator = {
|
||||
inherit (registry.port-data_accumulator) host port;
|
||||
enable = true;
|
||||
database = {
|
||||
host = "127.0.0.1";
|
||||
port = config.services.postgresql.port;
|
||||
passwordFile = config.sops.secrets.postgres_password.path;
|
||||
user = "tlms";
|
||||
database = "tlms";
|
||||
};
|
||||
database = registry.postgres;
|
||||
GRPC = [{
|
||||
inherit (registry.grpc-data_accumulator-chemo) host port;
|
||||
name = "CHEMO";
|
||||
|
|
|
@ -2,13 +2,7 @@
|
|||
TLMS.datacare = {
|
||||
enable = true;
|
||||
http = registry.port-datacare;
|
||||
database = {
|
||||
host = "127.0.0.1";
|
||||
port = config.services.postgresql.port;
|
||||
user = "tlms";
|
||||
database = "tlms";
|
||||
passwordFile = config.sops.secrets.postgres_password.path;
|
||||
};
|
||||
database = registry.postgres;
|
||||
allowedIpsExport = [ "10.13.37.0/24" ];
|
||||
saltFile = config.sops.secrets.postgres_password_hash_salt.path;
|
||||
user = "datacare";
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
{ lib, pkgs, config, inputs, self, ... }: {
|
||||
{ lib, pkgs, config, inputs, self, registry, ... }: {
|
||||
|
||||
services.postgresql = {
|
||||
inherit (registry.postgres) port;
|
||||
enable = true;
|
||||
enableTCPIP = true;
|
||||
port = 5432;
|
||||
authentication = let
|
||||
senpai-ip =
|
||||
self.nixosConfigurations.notice-me-senpai.config.deployment-TLMS.net.wg.addr4;
|
||||
|
|
|
@ -3,12 +3,7 @@
|
|||
inherit (registry.port-trekkie) host port;
|
||||
enable = true;
|
||||
saltPath = config.sops.secrets.postgres_password_hash_salt.path;
|
||||
database = {
|
||||
host = "127.0.0.1";
|
||||
port = config.services.postgresql.port;
|
||||
passwordFile = config.sops.secrets.postgres_password.path;
|
||||
user = "tlms";
|
||||
};
|
||||
database = registry.postgres;
|
||||
redis = registry.redis-trekkie;
|
||||
grpc = registry.grpc-trekkie-chemo;
|
||||
logLevel = "info";
|
||||
|
|
|
@ -52,4 +52,12 @@ rec {
|
|||
host = "localhost";
|
||||
port = 6379;
|
||||
};
|
||||
|
||||
postgres = {
|
||||
host = "127.0.0.1";
|
||||
user = "tlms";
|
||||
database = "tlms";
|
||||
port = 5432;
|
||||
passwordFile = "/run/secrets/postgres_password";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue