modules/proxy: multi-user support

This commit is contained in:
xinyangli 2024-12-06 23:24:49 +08:00
parent 7727c5cf43
commit 082e64b960
Signed by: xin
SSH key fingerprint: SHA256:UU5pRTl7NiLFJbWJZa+snLylZSXIz5rgHmwjzv8v4oE
3 changed files with 159 additions and 137 deletions

View file

@ -3,6 +3,7 @@
config = {
sops = {
age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
defaultSopsFile = ./secrets/secrets.yaml;
secrets = {
wg_private_key = {
owner = "root";
@ -12,14 +13,6 @@
owner = "root";
sopsFile = ./secrets + "/${config.networking.hostName}.yaml";
};
"sing-box/password" = {
owner = "root";
sopsFile = ./secrets/secrets.yaml;
};
"sing-box/uuid" = {
owner = "root";
sopsFile = ./secrets/secrets.yaml;
};
};
};
swapDevices = [
@ -32,6 +25,7 @@
custom.prometheus.exporters = {
enable = true;
node.enable = true;
blackbox.enable = true;
};
custom.monitoring = {
@ -44,6 +38,11 @@
auth.enable = true;
proxyServer = {
enable = true;
users = [
"wyj"
"yhb"
"xin"
];
};
};
};