Init
Initial commit, nodes are mostly done, panel is WIP
This commit is contained in:
commit
c11e41669b
71 files changed
+3256
No files matched your search
@@ -0,0 +1,24 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.vps.remnawave;
|
||||
in
|
||||
{
|
||||
config = mkIf (cfg.enable && cfg.type == "panel") {
|
||||
sops.secrets."panel/postgres-password" = { };
|
||||
|
||||
sops.templates."remnawave-db.env" = {
|
||||
mode = "0400";
|
||||
content = ''
|
||||
POSTGRES_USER=postgres
|
||||
POSTGRES_PASSWORD=${config.sops.placeholder."panel/postgres-password"}
|
||||
POSTGRES_DB=postgres
|
||||
TZ=UTC
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user