Initial commit, nodes are mostly done, panel is WIP
This commit is contained in:
aloslider committed 2026-11-17 10:43:26 +03:00
commit 01b75b0584
73 files changed
+3406

No files matched your search

@@ -0,0 +1,20 @@
{ config, lib, ... }:
with lib;
let
rootCfg = config.vps.remnawave;
moduleCfg = rootCfg.panel.sub-page;
in
{
config = mkIf (rootCfg.enable && rootCfg.type == "panel") {
sops.secrets = {
"panel/subpage-api-token" = { };
};
sops.templates."remnawave-subpage.env".content = ''
REMNAWAVE_PANEL_URL=http://remnapanel:3000
APP_PORT=${toString moduleCfg.port}
TRUST_PROXY=1
REMNAWAVE_API_TOKEN=${config.sops.placeholder."panel/subpage-api-token"}
'';
};
}