VEGAS/database: use proper authentication
This commit is contained in:
parent
f18cf36176
commit
711ed58dc6
2 changed files with 4 additions and 4 deletions
|
@ -6,9 +6,5 @@
|
||||||
checkConfig = true;
|
checkConfig = true;
|
||||||
package = pkgs.postgresql_12;
|
package = pkgs.postgresql_12;
|
||||||
dataDir = "/srv/storage/database/postgres-12/data";
|
dataDir = "/srv/storage/database/postgres-12/data";
|
||||||
authentication = lib.mkForce ''
|
|
||||||
local all all trust
|
|
||||||
host all all 127.0.0.1/32 trust
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
{ config, lib, pkgs, tools, ... }:
|
{ config, lib, pkgs, tools, ... }:
|
||||||
|
let
|
||||||
|
cfg = config.services.nextcloud.config;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
age.secrets = {
|
age.secrets = {
|
||||||
nextcloud-adminpass = {
|
nextcloud-adminpass = {
|
||||||
|
@ -44,6 +47,7 @@
|
||||||
adminpassFile = config.age.secrets.nextcloud-dbpass.path;
|
adminpassFile = config.age.secrets.nextcloud-dbpass.path;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
services.postgresql.authentication = "local ${cfg.dbname} ${cfg.dbuser} md5";
|
||||||
services.nginx.virtualHosts."${config.services.nextcloud.hostName}" = {
|
services.nginx.virtualHosts."${config.services.nextcloud.hostName}" = {
|
||||||
addSSL = true;
|
addSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
|
|
Loading…
Reference in a new issue