]> git.kaiwu.me - nginx.git/commit
Control API: in memory config dump.
authorAva Hahn <a.hahn@f5.com>
Thu, 5 Feb 2026 22:25:19 +0000 (22:25 +0000)
committerAva Hahn <110854134+avahahn@users.noreply.github.com>
Tue, 1 Sep 2026 17:34:56 +0000 (10:34 -0700)
commit1c1c17c10440f89114fbb78cf8fdec5db34a2fba
treeb754b8fc96cafa14691f1ef210e905253ae4a5d2
parent74133fba7c6cd15c726a69b7af30cd49c17d6e8a
Control API: in memory config dump.

The /control/config endpoint returns the currently parsed and running
configuration on GET request.

Example:

$ curl 127.0.0.1:1234/1/control/config | jq
[
  {
    "name": "/path/to/nginx.conf",
    "content": "..."
  },
  {
    "name": "/path/to/included.conf",
    "content": "..."
  }
]

Co-authored-by: Pavel Pautov <p.pautov@f5.com>
src/core/nginx.c
src/core/ngx_conf_file.c
src/os/unix/ngx_control.c