refactor: users single-point

This commit is contained in:
fufsob committed 2026-09-29 05:39:33 +00:00
1 parent c8b9b3de46
commit a4752049ef
35 files changed
+1009 -381

No files matched your search

+7 -5
View File
@@ -40,15 +40,17 @@ services.proxy-suite = {
enable = true;
serverAddress = "vpn.example.com"; # null: this host's public IPv4
routing.via = "direct"; # clients exit straight from this host
# Each user once; listeners name the ones they accept, and take the secret they need.
users = {
phone.uuidFile = "/run/secrets/uuid-phone";
laptop.uuidFile = "/run/secrets/uuid-laptop";
};
listeners = {
vless-reality = {
type = "vless";
port = 443;
flow = "xtls-rprx-vision";
users = [
{ name = "phone"; uuidFile = "/run/secrets/uuid-phone"; }
{ name = "laptop"; uuidFile = "/run/secrets/uuid-laptop"; }
];
users = [ "phone" "laptop" ];
reality = {
enable = true;
serverNames = [ "www.microsoft.com" ];
@@ -61,7 +63,7 @@ services.proxy-suite = {
awg = {
type = "amneziawg";
port = 51820;
users = [ { name = "phone"; } ];
users = [ "phone" ];
};
};
};