First pass removing newt

This commit is contained in:
Owen
2026-09-14 17:56:12 -04:00
parent f03389ac13
commit ca9d575ec7
2 changed files with 56 additions and 36 deletions
+53 -34
View File
@@ -1,6 +1,6 @@
---
title: "Configure Sites"
description: "Configure Newt for connecting to Pangolin sites"
description: "Configure Pangolin site connector setting"
---
@@ -12,24 +12,27 @@ Almost every setting below can also be set via an environment variable (**Env va
</Note>
<ResponseField name="id" type="string" required>
Newt ID generated by Pangolin to identify the client.
Site ID generated by Pangolin to identify the client.
**Example**: `31frd0uzbjvp721`
**Env var**: `NEWT_ID`
**Env var**: `SITE_ID`
**Config file key**: `id`
**Legacy env var**: `NEWT_SECRET`
</ResponseField>
<ResponseField name="secret" type="string" required>
A unique secret used to authenticate the client ID with the websocket.
A unique secret used to authenticate the site with the websocket.
**Example**: `h51mmlknrvrwv8s4r1i210azhumt6isgbpyavxodibx1k2d6`
**Env var**: `NEWT_SECRET`
**Env var**: `SITE_SECRET`
**Config file key**: `secret`
**Legacy env var**: `NEWT_SECRET`
<Warning>
Keep this secret private and secure. It's used for authentication.
</Warning>
@@ -50,13 +53,13 @@ Almost every setting below can also be set via an environment variable (**Env va
**Example**: `my-edge-site` or `'{{env.SERIAL_NUMBER}}-edge'`
**Env var**: `NEWT_NAME`
**Env var**: `SITE_NAME`
**Config file key**: `name`
</ResponseField>
<ResponseField name="provisioning-blueprint-file" type="string">
Path to a blueprint YAML file applied **once** at provisioning (imperative bootstrap). Unlike `--blueprint-file`, Newt does not keep reapplying it, so resources you edit in the dashboard are not overwritten on later runs. See [Site provisioning keys](/manage/sites/site-provisioning).
Path to a blueprint YAML file applied **once** at provisioning (imperative bootstrap). Unlike `--blueprint-file`, the site does not keep reapplying it, so resources you edit in the dashboard are not overwritten on later runs. See [Site provisioning keys](/manage/sites/site-provisioning).
**Example**: `/path/to/bootstrap.yaml`
@@ -66,25 +69,27 @@ Almost every setting below can also be set via an environment variable (**Env va
</ResponseField>
<ResponseField name="provisioning-key" type="string">
Provisioning key from Pangolin (alternative to a `provisioningKey` field inside the config file). Newt exchanges it once for site credentials, then persists `id` and `secret` to the config file and ignores the key on later runs. This flag is not written into the config file. See [Site provisioning keys](/manage/sites/site-provisioning).
Provisioning key from Pangolin (alternative to a `provisioningKey` field inside the config file). The site exchanges it once for site credentials, then persists `id` and `secret` to the config file and ignores the key on later runs. This flag is not written into the config file. See [Site provisioning keys](/manage/sites/site-provisioning).
**Example**: `spk_...`
**Env var**: `NEWT_PROVISIONING_KEY`
**Env var**: `SITE_PROVISIONING_KEY`
**Config file key**: `provisioningKey`
**Legacy env var**: `NEWT_PROVISIONING_KEY`
</ResponseField>
<ResponseField name="config-file" type="string">
Path to a JSON file where Newt reads and persists settings (`endpoint`, `id`, `secret`, optional `provisioningKey`, and virtually every other flag below). When you use [site provisioning](/manage/sites/site-provisioning), Newt writes `id` and `secret` into this file after a successful exchange. See [Config File](#config-file) for the default path on each platform.
Path to a JSON file where the site reads and persists settings (`endpoint`, `id`, `secret`, optional `provisioningKey`, and virtually every other flag below). When you use [site provisioning](/manage/sites/site-provisioning), the site writes `id` and `secret` into this file after a successful exchange. See [Config File](#config-file) for the default path on each platform.
**Example**: `/var/newt.json`
**Example**: `/var/site.json`
**Env var**: `CONFIG_FILE`
</ResponseField>
<ResponseField name="port" type="integer">
Port for the peers to connect to Newt on. This can be used to keep a static port open in firewalls instead of default random ports.
Port for the peers to connect to the site on. This can be used to keep a static port open in firewalls instead of default random ports.
**Example**: `34534`
@@ -116,7 +121,7 @@ Almost every setting below can also be set via an environment variable (**Env va
<ResponseField name="interface-main" type="string">
Name of the native main tunnel WireGuard interface (used with `--native-main`).
**Default**: `newt`
**Default**: `pangolin`
**Env var**: `INTERFACE_MAIN`
@@ -144,7 +149,7 @@ Almost every setting below can also be set via an environment variable (**Env va
</ResponseField>
<ResponseField name="log-level" type="string">
The log level to use for Newt output.
The log level to use for the site output.
**Options**: `DEBUG`, `INFO`, `WARN`, `ERROR`, `FATAL`
@@ -180,9 +185,11 @@ Almost every setting below can also be set via an environment variable (**Env va
**Default**: `90s`
**Env var**: `NEWT_UDP_PROXY_IDLE_TIMEOUT`
**Env var**: `SITE_UDP_PROXY_IDLE_TIMEOUT`
**Config file key**: `udpProxyIdleTimeout`
**Legacy env var**: `NEWT_UDP_PROXY_IDLE_TIMEOUT`
</ResponseField>
<ResponseField name="docker-socket" type="string">
@@ -196,7 +203,7 @@ Almost every setting below can also be set via an environment variable (**Env va
</ResponseField>
<ResponseField name="docker-enforce-network-validation" type="boolean">
Validate the container target is on the same network as the Newt process.
Validate the container target is on the same network as the the site process.
**Default**: `false`
@@ -268,7 +275,7 @@ Almost every setting below can also be set via an environment variable (**Env va
<ResponseField name="interface" type="string">
Name of the WireGuard interface.
**Default**: `newt`
**Default**: `pangolin`
**Env var**: `INTERFACE`
@@ -280,9 +287,11 @@ Almost every setting below can also be set via an environment variable (**Env va
**Default**: `false`
**Env var**: `NEWT_METRICS_PROMETHEUS_ENABLED`
**Env var**: `SITE_METRICS_PROMETHEUS_ENABLED`
**Config file key**: `metrics`
**Legacy env var**: `NEWT_METRICS_PROMETHEUS_ENABLED`
</ResponseField>
<ResponseField name="otlp" type="boolean">
@@ -290,9 +299,11 @@ Almost every setting below can also be set via an environment variable (**Env va
**Default**: `false`
**Env var**: `NEWT_METRICS_OTLP_ENABLED`
**Env var**: `SITE_METRICS_OTLP_ENABLED`
**Config file key**: `otlp`
**Legacy env var**: `NEWT_METRICS_OTLP_ENABLED`
</ResponseField>
<ResponseField name="metrics-admin-addr" type="string">
@@ -300,9 +311,11 @@ Almost every setting below can also be set via an environment variable (**Env va
**Default**: `127.0.0.1:2112`
**Env var**: `NEWT_ADMIN_ADDR`
**Env var**: `SITE_ADMIN_ADDR`
**Config file key**: `metricsAdminAddr`
**Legacy env var**: `NEWT_ADMIN_ADDR`
</ResponseField>
<ResponseField name="metrics-async-bytes" type="boolean">
@@ -310,9 +323,11 @@ Almost every setting below can also be set via an environment variable (**Env va
**Default**: `false`
**Env var**: `NEWT_METRICS_ASYNC_BYTES`
**Env var**: `SITE_METRICS_ASYNC_BYTES`
**Config file key**: `metricsAsyncBytes`
**Legacy env var**: `NEWT_METRICS_ASYNC_BYTES`
</ResponseField>
<ResponseField name="pprof" type="boolean">
@@ -320,9 +335,11 @@ Almost every setting below can also be set via an environment variable (**Env va
**Default**: `false`
**Env var**: `NEWT_PPROF_ENABLED`
**Env var**: `SITE_PPROF_ENABLED`
**Config file key**: `pprof`
**Legacy env var**: `NEWT_PPROF_ENABLED`
</ResponseField>
<ResponseField name="region" type="string">
@@ -330,9 +347,11 @@ Almost every setting below can also be set via an environment variable (**Env va
**Example**: `us-west-2`
**Env var**: `NEWT_REGION`
**Env var**: `SITE_REGION`
**Config file key**: `region`
**Legacy env var**: `NEWT_REGION`
</ResponseField>
<ResponseField name="enforce-hc-cert" type="boolean">
@@ -424,7 +443,7 @@ Almost every setting below can also be set via an environment variable (**Env va
</ResponseField>
<ResponseField name="version" type="boolean">
Print the Newt version and exit.
Print the Newt (package) version and exit.
</ResponseField>
<ResponseField name="show-config" type="boolean">
@@ -453,9 +472,9 @@ If `--config-file`/`CONFIG_FILE` isn't set, Newt reads and writes the config fil
| Platform | Default path |
| --- | --- |
| macOS | `~/Library/Application Support/newt-client/config.json` |
| Windows | `%PROGRAMDATA%\newt\newt-client\config.json` |
| Linux / others | `~/.config/newt-client/config.json` |
| macOS | `~/.config/pangolin/site.json` |
| Windows | `~/.config/pangolin/site.json` |
| Linux / others | `~/.config/pangolin/site.json` |
### Example
@@ -530,16 +549,16 @@ Supported values include:
```yaml
services:
newt:
image: fosrl/newt
container_name: newt
pangolin-site:
image: fosrl/pangolin-cli
container_name: pangolin-site
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
- PANGOLIN_ENDPOINT=https://example.com
- NEWT_ID=2ix2t8xk22ubpfy
- NEWT_SECRET=nnisrfsdfc7prqsp9ewo1dvtvci50j5uiqotez00dgap0ii2
- SITE_ID=2ix2t8xk22ubpfy
- SITE_SECRET=nnisrfsdfc7prqsp9ewo1dvtvci50j5uiqotez00dgap0ii2
- DOCKER_SOCKET=unix:///var/run/docker.sock
```
@@ -609,7 +628,7 @@ This is the original method and still supported.
**Example:**
```bash
newt \
pangolin \
--id 31frd0uzbjvp721 \
--secret h51mmlknrvrwv8s4r1i210azhumt6isgbpyavxodibx1k2d6 \
--endpoint https://example.com \
@@ -627,7 +646,7 @@ You can now provide separate files for:
**Example:**
```bash
newt \
pangolin \
--id 31frd0uzbjvp721 \
--secret h51mmlknrvrwv8s4r1i210azhumt6isgbpyavxodibx1k2d6 \
--endpoint https://example.com \