feat: support warp config generators
This commit is contained in:
5 files changed
+56
-4
No files matched your search
@@ -12,7 +12,7 @@ in
|
||||
default = null;
|
||||
description = ''
|
||||
Runtime path to a WireGuard profile for WARP, as written by `wgcf register && wgcf generate`.
|
||||
Junk-packet lines (Jc, Jmin, Jmax) are honoured by the AmneziaWG profile only.
|
||||
AmneziaWG lines (Jc, S1-S4, H1-H4, I1-I5, AWG 3 timing) are honoured by the AmneziaWG profile only.
|
||||
|
||||
When null, proxy-suite-warp registers a device with wgcf (accepting Cloudflare's terms)
|
||||
into /var/lib/proxy-suite/warp, through the local proxy when proxy.enable is set, and
|
||||
@@ -21,6 +21,19 @@ in
|
||||
example = "/run/secrets/wgcf-profile.conf";
|
||||
};
|
||||
|
||||
generatorUrl = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
description = ''
|
||||
HTTPS URL of a WARP profile generator, fetched directly when wgcf registration fails
|
||||
(e.g. the Cloudflare API is blocked and there is no local proxy). It must return a
|
||||
WireGuard profile, or JSON with the base64 profile in `.content`.
|
||||
|
||||
The generator registers the device, so its operator sees the private key.
|
||||
'';
|
||||
example = "https://valokda-amnezia.vercel.app/api/warp?mode=awg2";
|
||||
};
|
||||
|
||||
asOutbound = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
|
||||
Reference in new issue
Block a user