feat: better inbounds user management
This commit is contained in:
47 files changed
+6767
-78
No files matched your search
@@ -0,0 +1,17 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
services.proxy-suite.inbounds = {
|
||||
manager = {
|
||||
enable = true;
|
||||
speedLimits.enable = true; # nftables, and proxy-suite's XRay patch
|
||||
};
|
||||
# Declared users take a policy in the config; runtime ones get theirs from proxy-ctl or the API.
|
||||
users.phone.policy = {
|
||||
expiresAt = "2026-12-31";
|
||||
trafficLimit = "100G";
|
||||
trafficPeriod = "monthly";
|
||||
ipLimit = 2;
|
||||
speedLimit = "50M/10M"; # down/up, bits per second
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user