VEGAS/nextcloud: rekey secrets and move to Patroni database
This commit is contained in:
parent
df62cbfe93
commit
0614be7afb
3 changed files with 6 additions and 4 deletions
|
@ -1,6 +1,8 @@
|
|||
{ config, lib, pkgs, tools, ... }:
|
||||
{ cluster, config, lib, pkgs, tools, ... }:
|
||||
let
|
||||
cfg = config.services.nextcloud.config;
|
||||
|
||||
patroni = cluster.config.links.patroni-pg-access;
|
||||
in
|
||||
{
|
||||
age.secrets = {
|
||||
|
@ -35,16 +37,16 @@ in
|
|||
};
|
||||
|
||||
config = {
|
||||
dbhost = "/run/postgresql";
|
||||
dbhost = patroni.tuple;
|
||||
dbtype = "pgsql";
|
||||
dbname = "storage";
|
||||
dbuser = "storage";
|
||||
dbpassFile = config.age.secrets.nextcloud-adminpass.path;
|
||||
dbpassFile = config.age.secrets.nextcloud-dbpass.path;
|
||||
|
||||
overwriteProtocol = "https";
|
||||
|
||||
adminuser = "sa";
|
||||
adminpassFile = config.age.secrets.nextcloud-dbpass.path;
|
||||
adminpassFile = config.age.secrets.nextcloud-adminpass.path;
|
||||
};
|
||||
};
|
||||
services.postgresql.authentication = "local ${cfg.dbname} ${cfg.dbuser} md5";
|
||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue