hive-gateway: serve the swagger-ui theme via nginx alias, not a c0re build hook
This commit is contained in:
parent
5471b49f2a
commit
de1659d10e
7 changed files with 117 additions and 8 deletions
|
|
@ -1,11 +1,16 @@
|
|||
<!-- HTML for static distribution bundle build -->
|
||||
<!-- Overrides the vendored Swagger UI's dist/index.html (byte-identical
|
||||
otherwise) via `SWAGGER_UI_OVERWRITE_FOLDER`. Adds `colors.css`
|
||||
(same origin as the dashboard — see dashboardProxyLocation in
|
||||
nix/host-modules/hive-gateway/vhosts.nix — so this resolves the
|
||||
operator's live stylix theme, not a frozen copy) and
|
||||
hyperhive-theme.css, which consumes its `--baseNN` vars. See
|
||||
docs/web-ui/dashboard.md::Dashboard endpoints. -->
|
||||
<!-- Served by the gateway's nginx (an exact-match `location = /api/docs/`
|
||||
alias straight to this file's nix store path — see
|
||||
nix/host-modules/hive-gateway/vhosts.nix's swaggerThemeLocations),
|
||||
NOT by hive-c0re: a theme tweak here is a gateway config change,
|
||||
not a hive-c0re rebuild+restart. Byte-identical to the vendored
|
||||
Swagger UI's dist/index.html except two added <link>s: `colors.css`
|
||||
(same origin as the dashboard — so this resolves the operator's
|
||||
live stylix theme, not a frozen copy) and hyperhive-theme.css,
|
||||
which consumes its `--baseNN` vars. Every other path here (script
|
||||
src, other stylesheets, favicons) stays relative and falls through
|
||||
nginx's `/api/` prefix proxy to hive-c0re's own vendored,
|
||||
unmodified Swagger UI assets — only this file and
|
||||
hyperhive-theme.css are intercepted. -->
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
|
|
|
|||
Loading…
Reference in a new issue