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,21 @@
{ config, lib, ... }:
with lib;
let
rootCfg = config.vps.remnawave;
moduleCfg = rootCfg.panel.auth;
domain = config.sops.placeholder."domain";
in
{
config = mkIf (rootCfg.enable && rootCfg.type == "panel") {
sops.secrets = {
"domain" = { };
"panel/tinyauth-users" = { };
};
sops.templates."tinyauth.env".content = ''
TINYAUTH_SERVER_PORT=${toString moduleCfg.port}
TINYAUTH_APPURL=https://${moduleCfg.subdomain}.${domain}
TINYAUTH_AUTH_USERS=${config.sops.placeholder."panel/tinyauth-users"}
'';
};
}