v0.42.1
This commit is contained in:
1 parent
167861fc16
commit
aa0a271a1c
38 files changed
+3642
-1058
No files matched your search
@@ -18,6 +18,11 @@ A **Vhost** publishes one or more hostnames on named HTTP/HTTPS listeners. Its s
|
||||
|
||||
A Vhost may bind several frontends. Hostnames and selected listeners must match: the existence of a certificate or an upstream does not create DNS entries or a listening socket. Existing Vhosts retain their bindings when new listeners are created.
|
||||
|
||||
The listener choices use aligned cards with the same spacing whether on/off
|
||||
controls are displayed as switches or checkboxes. Long listener descriptions
|
||||
wrap inside their cards; this presentation does not change selected listener
|
||||
IDs or grant access to a disabled listener.
|
||||
|
||||
## Cache rules: tester and VCL guide
|
||||
|
||||
In **Vhosts → Edit → Cache**, use the same compact **Test a request** form as in global Cache settings and Docker vhosts. The request and example backend response have separate groups. Tests preview the **unsaved local rules** with the **saved global rules** for that vhost (or exclude them if **Ignore global cache rules** is checked). For a path-only URL the current hostname field is used as the `Host` header, unless you specify `Host` explicitly. This simulates rule decisions without contacting the backend and does not model other unsaved cache settings.
|
||||
@@ -103,6 +108,35 @@ Keep Vhost IDs stable for monitoring/history unless renaming is intentional. Ren
|
||||
|
||||
## Editor layout
|
||||
|
||||
Since 0.42.1, the Vhost editor no longer has a separate **Advanced** tab. Its
|
||||
location, inline ACL and custom-header JSON controls live beside their visual
|
||||
editors:
|
||||
|
||||
| Tab and section | JSON drawer | Saved Vhost field |
|
||||
| --- | --- | --- |
|
||||
| **Custom locations** | **Locations JSON** | `routes` |
|
||||
| **Security → Traffic policy → Vhost IP access list** | **Inline ACL JSON** | `acl` |
|
||||
| **Headers → Custom header rules (request / response)** | **Header rules JSON** | `headers` |
|
||||
|
||||
Open the drawer to inspect or edit the same section's data. **Format JSON**
|
||||
validates and formats the text. **Apply JSON to draft** validates its structure
|
||||
and updates the visual editor; it does not activate changes. **Reload from
|
||||
form** reloads the current visual values and asks before discarding unapplied
|
||||
JSON edits. Save the Vhost after applying the intended changes.
|
||||
|
||||
Unapplied or invalid JSON blocks Vhost saving, including when its drawer is
|
||||
closed; validation reveals the relevant tab and editor. If the same section's
|
||||
visual form changes while JSON edits are pending, applying them is refused
|
||||
until **Reload from form** resolves the conflict. Keep a copy of any JSON edits
|
||||
you want to reapply before reloading. Using `null` for the inline ACL disables
|
||||
that inline list only; assigned ACL profiles remain independent. Configuration
|
||||
field names, server validation and access precedence are unchanged.
|
||||
|
||||
The **Headers → HTTP policies** editor has a separate rule builder and JSON
|
||||
view, plus the [scenario catalog](POLICY.md#scenario-presets-and-the-rule-builder).
|
||||
Its **Documentation** control is a button matching the other editor actions.
|
||||
Global HTTP policies at `settings?tab=policies` use the same catalog and button.
|
||||
|
||||
Within the Vhost editor, **SSL certificates** contains the named certificate selection and the explicit certificate/domain mismatch exception. The next **SSL settings** section contains the optional override of the global TLS 1.2/1.3 and cipher policy. Turning off the TLS override retains the inherited global policy. These two sections are on the same **SSL** tab.
|
||||
|
||||
The **Security** tab groups Traffic policy by reusable ACL profiles, HTTP methods, per-IP limits, country access, country-specific limits and User-Agent limits. It also separates HSTS, other security response headers and per-Vhost User-Agent blocking. Since 0.41.0 the **Headers** tab collects everything else about headers: **Backend diagnostics** (Server-Timing, `X-Rust-Proxy-Backend`, backend time and one-click diagnostic header presets), **Response identity and diagnostics** (Server header, request ID) and the **custom header rules** for requests and responses, including `%[variables]`. The tab starts with a live **header preview** of the unsaved draft for both directions (choose an example backend, location and cache result) and marks where every header comes from; rules show the rendered example value or an error while you type. Within **Custom locations → Access**, profile, HTTP method, country and inline IP/CIDR rules are likewise separated. **Details** separates base Vhost properties from WebSocket options; **Backends** separates balancing strategy, retry behavior and keepalive/connection reuse. The visual grouping does not change saved configuration keys or access precedence.
|
||||
|
||||
Reference in new issue
Block a user