fix: more hardening

This commit is contained in:
fufsob committed 2026-09-30 13:27:55 +00:00
1 parent 18a2049a1c
commit c1e4425d18
23 files changed
+929 -99

No files matched your search

+5
View File
@@ -136,6 +136,8 @@ in
RUNTIME_OUTBOUNDS_DIR = constants.runtimeOutboundsDir;
RUNTIME_SUBS_DIR = constants.runtimeSubscriptionsDir;
USER_CONTROL_GROUP = userControlCfg.group;
# {group: [scopes]}: what proxy-suite-clash-api lets each group's members ask.
USER_CONTROL_GROUPS = builtins.toJSON ctx.clashBrokerGroups;
LOCAL_PROXY_URL = "http://${localProxy.hostPart}:${toString proxyCfg.listener.port}";
AUTOPROXY_ENABLED = flag proxyCfg.autoProxy.enable;
AUTOPROXY_STATE_DIR = constants.autoProxyStateDir;
@@ -146,6 +148,9 @@ in
SERVICE_MANAGER = constants.serviceManager;
PRIVILEGED = flag constants.privileged;
}
// lib.optionalAttrs ctx.clashBrokerEnabled {
CLASH_BROKER = constants.clashBrokerSocket;
}
// lib.optionalAttrs (constants.serviceManager == "supervisor") {
SUPERVISOR_CTL = constants.systemctl;
};