remove the agent's stats page and its endpoint
This commit is contained in:
parent
7d0641edf6
commit
6ed714a0a7
1 changed files with 49 additions and 1744 deletions
|
|
@ -62,7 +62,7 @@ const PROXY_HEADER_BLOCK: &str = " proxy_http_version 1.1;
|
|||
///
|
||||
/// When `frontend_dir` is `Some(path)` each agent gets split location
|
||||
/// blocks:
|
||||
/// - Exact HTML pages (`/`, `/stats`, `/screen`) → `alias` from the nix
|
||||
/// - Exact HTML pages (`/screen`) → `alias` from the nix
|
||||
/// store dist. These load even while the agent daemon is restarting.
|
||||
/// - Static assets (`/static/`) → `alias` from the nix store with cache
|
||||
/// headers. Served by nginx directly, no agent socket round-trip.
|
||||
|
|
@ -112,7 +112,7 @@ fn render(names: &[String], frontend_dir: Option<&str>) -> String {
|
|||
//
|
||||
// try_files resolution (nginx applies the alias mapping before checking):
|
||||
// $uri — exact file match (/static/app.js → static/app.js)
|
||||
// $uri.html — bare-path .html fallback (/stats → stats.html)
|
||||
// $uri.html — bare-path .html fallback (/screen → screen.html)
|
||||
// $uri/index.html — directory index (/ → index.html)
|
||||
// @<name>_dynamic — proxy catchall: api, events, icon, login, …
|
||||
//
|
||||
|
|
|
|||
Loading…
Reference in a new issue