v0.37.1
This commit is contained in:
1 parent
78dbb31487
commit
f48843e934
83 files changed
+7304
-1203
No files matched your search
@@ -46,7 +46,7 @@ Go 1.22+ is required only for the manual build, not for a DEB/RPM installation.
|
||||
|
||||
### Domains
|
||||
|
||||
An agent has a list of DNS suffixes (`domains`, up to 16), picked in the same searchable multi-select as ACL profiles; type a new domain in the search box and press Enter to add it. Suggestions come from other agents and from wildcard certificates. Every published Docker vhost selects its **master domain** from this list (default: the first domain), so a newly published service is reachable immediately as `<container-name>.<master domain>`. **Aliases** may be short labels (expanded below the master domain, or below another agent domain chosen next to the alias input) or full names, which the panel only accepts inside one of the agent domains. Configurations from before 0.37.0 with a single `base_domain` are migrated to `domains: [base_domain]` on the next save; nothing else changes.
|
||||
An agent has a list of DNS suffixes (`domains`, up to 16), picked in the same searchable multi-select as ACL profiles; type a new domain in the search box and press Enter to add it. Suggestions come from other agents and from wildcard certificates. Every published Docker vhost selects its **master domain** from this list (default: the first domain), so a newly published service is reachable immediately as `<container-name>.<master domain>`. The ★ button on a domain in the picker makes it the master domain. **Aliases** may be short labels (expanded below the master domain, or below another agent domain chosen next to the alias input, which lists the master domain only once) or full names, which the panel only accepts inside one of the agent domains. Configurations from before 0.37.0 with a single `base_domain` are migrated to `domains: [base_domain]` on the next save; nothing else changes.
|
||||
|
||||
### Certificates
|
||||
|
||||
@@ -57,7 +57,7 @@ A previously selected single `certificate_id` is migrated to `certificate_ids: [
|
||||
|
||||
### Default backend IP
|
||||
|
||||
The agent default backend IP is chosen from the **addresses the agent detected** (interface, scope and source are shown) or entered as **Custom address…**. *Automatic* keeps the per-service choice (bind address, primary IP, detected addresses). The list fills after the first successful poll.
|
||||
The agent default backend IP is chosen from the **addresses the agent detected** or entered as **Custom address…**. The list is grouped into *Recommended* (primary route, public address or `RUSTPROXY_DOCKER_ADVERTISE_IP` override, the primary one marked ★), *Other host interfaces* and, from agent 0.37.1, *Container bridges* (`docker0`, `br-*`, `podman*`, `cni-*`, `virbr*`), which are reachable only when RustProxy runs on the same host. *Automatic* keeps the per-service choice (bind address, primary IP, detected addresses). The list fills after the first successful poll.
|
||||
|
||||
### Host diagnostics
|
||||
|
||||
@@ -86,19 +86,19 @@ services:
|
||||
rustproxy.force_ssl: "true"
|
||||
```
|
||||
|
||||
Also supported: `rustproxy.websockets`, `rustproxy.cache`, `rustproxy.compression` and `rustproxy.preserve_host` (`true`/`false`). Labels never leave the agent domains, never take a name already used by a vhost, redirect, 404 host or another Docker service and never override a manual setting for the same service. Invalid labels produce a **LABEL ERROR** badge and an alert instead of a vhost. Label publications use the agent defaults (listeners, certificates, ACL profiles, default backend IP). To customise one, open it and press **Apply changes** (it becomes a manual setting); switching **Publish** off stores a disabled manual override. Labels are read only from agents 0.37.0+. The option is off by default because anyone who can start containers on that host can then publish names inside the agent domains.
|
||||
Also supported: `rustproxy.websockets`, `rustproxy.cache`, `rustproxy.compression` and `rustproxy.preserve_host` (`true`/`false`). Labels never leave the agent domains, never take a name already used by a vhost, redirect, 404 host or another Docker service and never override a manual setting for the same service. Invalid labels produce a **LABEL ERROR** badge and an alert instead of a vhost. Label publications use the agent defaults (listeners, certificates, ACL profiles, default backend IP). To customise one, open it and press **Apply changes** (it becomes a manual setting); switching **Publish** off stores a disabled manual override. Labels are read only from agents 0.37.0+. The **?** button next to the option opens the label reference with a `docker compose` example. The option is off by default because anyone who can start containers on that host can then publish names inside the agent domains.
|
||||
|
||||
### Container state and history
|
||||
|
||||
Agents 0.37.0+ report per published container its state and health check, CPU usage, memory (without page cache) with its limit and restart count; the service row shows them and Prometheus exports `rust_proxy_docker_container_*`. Containers whose image defines no `HEALTHCHECK` are shown as *no health check* (`health: "none"`) and are judged only by their state (running is fine; restarting, exited or dead raise an alert). The small CPU, memory, load and network charts in **Agent details** are sampled in the browser from the agent polls while the page is open, like the other panel charts; RustProxy does not store history.
|
||||
Agents 0.37.0+ report per published container its state and health check, CPU usage, memory (without page cache) with its limit and restart count; the service row shows them as separate chips — state with uptime (green when running), health check, CPU and RAM with a fill bar against the memory limit (amber from 75 %, red from 90 %) and restarts (amber above zero) — and Prometheus exports `rust_proxy_docker_container_*`. Containers whose image defines no `HEALTHCHECK` are shown as *no health check* (`health: "none"`) and are judged only by their state (running is fine; restarting, exited or dead raise an alert). The small CPU, memory, load and network charts in **Agent details** are sampled in the browser from the agent polls while the page is open, like the other panel charts; RustProxy does not store history.
|
||||
|
||||
### Test connection and one-time codes
|
||||
|
||||
**Test connection** in each agent runs one inventory request with the values in the form, before saving. `sudo rustproxy-docker-agent provision-code` prints a **one-time code** by default: it holds the endpoint, the certificate pin and a single-use enrollment secret valid for 15 minutes (`--ttl 1h` to change), not the token. When you paste it, RustProxy connects to the agent over the pinned HTTPS connection, redeems the secret and fills in the permanent token; the code cannot be used again. The agent service must be running. `provision-code --static` prints the previous reusable code that contains the token (also needed for plain-HTTP agents).
|
||||
**Test connection** (next to *Remove* in each agent) runs one inventory request with the values in the form, before saving, and shows the result in a bubble below the button. `sudo rustproxy-docker-agent provision-code` prints a **one-time code** by default: it holds the endpoint, the certificate pin and a single-use enrollment secret valid for 15 minutes (`--ttl 1h` to change), not the token. When you paste it, RustProxy connects to the agent over the pinned HTTPS connection, redeems the secret and fills in the permanent token; the code cannot be used again. The agent service must be running. `provision-code --static` prints the previous reusable code that contains the token (also needed for plain-HTTP agents).
|
||||
|
||||
### Overview cards
|
||||
|
||||
Six optional Overview cards (hidden by default; enable them in the Overview layout editor or **Settings → Appearance → Dashboard layout**): **Docker agents** (connected/enabled), **Docker apps** (published vhosts with a healthy backend, down, checking, missing and discovered services), **Docker app requests** (request rate across all Docker vhosts with a chart), **Docker hosts network** (combined host RX/TX rate with a chart), **Docker hosts load** (CPU/memory bars and load per host) and **Containers** (running/total, images, Docker/Podman host count). They read the compact `docker` object in `/api/status` and the live view. Every card exists four times (*Docker hosts load*, *Docker hosts load #2* … *#4*, likewise for the others), so you can place the same card once per agent next to each other. With two or more agents each card has an agent selector — **All agents** or a single agent — so you can monitor agents separately or together. The selector is shown in the card and next to the card in the hidden-cards list of the layout editors, so the agent can be chosen when the card is added. The choice is stored per administrator (`docker_widget_agents` in `/api/preferences`); a card whose agent was removed falls back to all agents.
|
||||
Six optional Overview cards (hidden by default; enable them in the Overview layout editor or **Settings → Appearance → Dashboard layout**): **Docker agents** (connected/enabled), **Docker apps** (published vhosts with a healthy backend, down, checking, missing and discovered services), **Docker app requests** (request rate across all Docker vhosts with a chart), **Docker hosts network** (combined host RX/TX rate with a chart), **Docker hosts load** (CPU/memory bars and load per host) and **Containers** (running/total, images, Docker/Podman host count). They read the compact `docker` object in `/api/status` and the live view. Every card type can be added up to four times, so you can place the same card once per agent next to each other. The hidden-cards lists (layout editors and **Settings → Appearance**) show each type once: with two or more agents choose **All agents** or one agent next to it and add it; the next free copy is used. A visible card keeps its agent selector, and its title shows the selected agent instead of *#2–#4*. The choice is stored per administrator (`docker_widget_agents` in `/api/preferences`); a card whose agent was removed falls back to all agents.
|
||||
|
||||
The self-signed certificate is persistent. RustProxy pins its exact fingerprint; if replaced, update the pin. A trusted CA-issued certificate can use normal CA and hostname verification instead. Plain HTTP is available only by explicit opt-out and exposes the token in transit.
|
||||
|
||||
|
||||
Reference in new issue
Block a user