docs: improve the wording, add targeted examples
This commit is contained in:
61 files changed
+3422
-5861
No files matched your search
+34
-97
@@ -1,5 +1,7 @@
|
||||
# services.proxy-suite.warp
|
||||
|
||||
Cloudflare WARP, as an outbound or an AmneziaWG profile.
|
||||
|
||||
Part of the [proxy-suite options reference](./index.md).
|
||||
|
||||
## Options
|
||||
@@ -15,130 +17,65 @@ Part of the [proxy-suite options reference](./index.md).
|
||||
<a id="services-proxy-suite-warp-enable"></a>
|
||||
## services\.proxy-suite\.warp\.enable
|
||||
|
||||
Whether to enable Cloudflare WARP\.
|
||||
Run Cloudflare WARP\. Also set ` asOutbound ` or ` asAmneziaWg `\.
|
||||
|
||||
*Type:*
|
||||
boolean
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
false
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
true
|
||||
```
|
||||
**Type:** boolean\
|
||||
**Default:** `false`
|
||||
|
||||
<a id="services-proxy-suite-warp-asamneziawg"></a>
|
||||
## services\.proxy-suite\.warp\.asAmneziaWg
|
||||
|
||||
Add an AmneziaWG profile named “warp” (` proxy-ctl awg on warp `)\. Requires amneziaWg\.enable,
|
||||
and excludes asOutbound: both would use the same WARP key\.
|
||||
Add a global AmneziaWG profile named “warp” (` proxy-ctl awg on warp `)\. Needs
|
||||
` amneziaWg.enable `\. Cannot be used with ` asOutbound `\.
|
||||
|
||||
*Type:*
|
||||
boolean
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
false
|
||||
```
|
||||
**Type:** boolean\
|
||||
**Default:** `false`
|
||||
|
||||
<a id="services-proxy-suite-warp-asoutbound"></a>
|
||||
## services\.proxy-suite\.warp\.asOutbound
|
||||
|
||||
Add WARP as an outbound tagged “warp”\.
|
||||
|
||||
- “singBox”: a SOCKS hop to proxy-suite-warp-tunnel, which runs WARP as a sing-box WireGuard
|
||||
endpoint on 127\.0\.0\.1:18538, as the proxy-suite-daemon user\. The tunnel starts again on a
|
||||
new source port when WARP does not answer within 15 seconds of a start, or misses three
|
||||
probes later on, unless the uplink itself is down\.
|
||||
- “userspace”: an AmneziaWG profile named “warp” with asOutbound = “userspace”, which honours
|
||||
the AmneziaWG lines of the profile without an interface or root\. Requires amneziaWg\.enable\.
|
||||
- “interface”: an AmneziaWG profile named “warp” with asOutbound = “interface”, which honours
|
||||
the AmneziaWG lines of the profile\. Requires amneziaWg\.enable\.
|
||||
- “singBox”: plain WireGuard in sing-box, ignoring AmneziaWG fields\. Restarts itself when
|
||||
WARP stops answering\.
|
||||
- “userspace”: an AmneziaWG profile, without root\. Needs ` amneziaWg.enable `\.
|
||||
- “interface”: an AmneziaWG profile with its own interface\. Needs ` amneziaWg.enable `\.
|
||||
|
||||
*Type:*
|
||||
null or one of “singBox”, “userspace”, “interface”
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
**Type:** null or one of “singBox”, “userspace”, “interface”\
|
||||
**Default:** `null`
|
||||
|
||||
<a id="services-proxy-suite-warp-configfile"></a>
|
||||
## services\.proxy-suite\.warp\.configFile
|
||||
|
||||
Runtime path to a WireGuard profile for WARP, as written by ` wgcf register && wgcf generate `\.
|
||||
AmneziaWG lines (Jc, S1-S4, H1-H4, I1-I5, AWG 3 timing) are honoured by the AmneziaWG profile
|
||||
(asAmneziaWg, asOutbound = “interface”) only\.
|
||||
File with a WARP WireGuard profile, from ` wgcf register && wgcf generate `\. AmneziaWG
|
||||
fields in it only take effect in the AmneziaWG modes\.
|
||||
|
||||
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
|
||||
retries until it succeeds\. Until then warp connections fail\.
|
||||
` null `: register a new device with wgcf on first start (accepting Cloudflare’s terms),
|
||||
through the local proxy if enabled\. WARP does not work until that succeeds\.
|
||||
|
||||
*Type:*
|
||||
null or string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
"/run/secrets/wgcf-profile.conf"
|
||||
```
|
||||
**Type:** null or string\
|
||||
**Default:** `null`\
|
||||
**Example:** `"/run/secrets/wgcf-profile.conf"`
|
||||
|
||||
<a id="services-proxy-suite-warp-endpoint"></a>
|
||||
## services\.proxy-suite\.warp\.endpoint
|
||||
|
||||
host:port that replaces the profile’s Endpoint (IPv6 in brackets), for when the default
|
||||
engage\.cloudflareclient\.com:2408 is blocked: another Cloudflare address, another port WARP
|
||||
answers on (500, 1701, 4500, …), or a relay\. Applied in every mode when the tunnel or
|
||||
AmneziaWG profile starts; the profile file itself is left as is\.
|
||||
host:port (IPv6 in brackets) to use instead of the profile’s endpoint, if the default one
|
||||
is blocked: another Cloudflare address, another WARP port (500, 1701, 4500, …), or a relay\.
|
||||
|
||||
*Type:*
|
||||
null or string matching the pattern (\\\[\[0-9A-Fa-f:\.]+]|\[^]:\[]+):\[0-9]+
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
"162.159.192.1:500"
|
||||
```
|
||||
**Type:** null or string matching the pattern (\\\[\[0-9A-Fa-f:\.]+]|\[^]:\[]+):\[0-9]+\
|
||||
**Default:** `null`\
|
||||
**Example:** `"162.159.192.1:500"`
|
||||
|
||||
<a id="services-proxy-suite-warp-generatorurl"></a>
|
||||
## services\.proxy-suite\.warp\.generatorUrl
|
||||
|
||||
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 `\.
|
||||
URL of a WARP profile generator, used if wgcf registration fails (for example, when the
|
||||
Cloudflare API is blocked)\. 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\.
|
||||
Its operator sees your private key\.
|
||||
|
||||
*Type:*
|
||||
null or string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
"https://valokda-amnezia.vercel.app/api/warp?mode=awg2"
|
||||
```
|
||||
**Type:** null or string\
|
||||
**Default:** `null`\
|
||||
**Example:** `"https://valokda-amnezia.vercel.app/api/warp?mode=awg2"`
|
||||
Reference in new issue
Block a user