feat: better inbounds user management
This commit is contained in:
47 files changed
+6767
-78
No files matched your search
@@ -4,6 +4,8 @@
|
||||
enable = true;
|
||||
baseUrl = "https://vpn.example.com/sub";
|
||||
};
|
||||
services.nginx.virtualHosts."vpn.example.com".locations."/sub/".alias =
|
||||
"/run/proxy-suite-inbounds/subscriptions/";
|
||||
services.nginx.virtualHosts."vpn.example.com".locations."/sub/" = {
|
||||
alias = "/run/proxy-suite-inbounds/subscriptions/";
|
||||
extraConfig = "access_log off;"; # the token is the URL's secret
|
||||
};
|
||||
}
|
||||
@@ -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