feat: better inbounds user management

This commit is contained in:
FUFSoB committed 2026-10-14 21:41:49 +05:00
1 parent 2f8414455d
commit 9f7ad91f39
47 files changed
+6767 -78

No files matched your search

+4 -2
View File
@@ -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
};
}
+17
View File
@@ -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
};
};
}