Skip to content

Commit

Permalink
feat(templates): enable status_listen by default on localhost (#12254)
Browse files Browse the repository at this point in the history
KAG-3359

---------

Co-authored-by: Keery Nie <windmgc@gmail.com>
  • Loading branch information
StarlightIbuki and windmgc committed Dec 27, 2023
1 parent 6e91c99 commit 1ab6ead
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions changelog/unreleased/kong/default_status_port.yml.yml
@@ -0,0 +1,3 @@
message: Enable `status_listen` on `127.0.0.1:8007` by default
type: feature
scope: Admin API
3 changes: 2 additions & 1 deletion kong.conf.default
Expand Up @@ -680,7 +680,8 @@
#
# Example: `admin_listen = 127.0.0.1:8444 http2 ssl`

#status_listen = off # Comma-separated list of addresses and ports on
#status_listen = 127.0.0.1:8007 reuseport backlog=16384
# Comma-separated list of addresses and ports on
# which the Status API should listen.
# The Status API is a read-only endpoint
# allowing monitoring tools to retrieve metrics,
Expand Down
2 changes: 1 addition & 1 deletion kong/templates/kong_defaults.lua
Expand Up @@ -28,7 +28,7 @@ proxy_listen = 0.0.0.0:8000 reuseport backlog=16384, 0.0.0.0:8443 http2 ssl reus
stream_listen = off
admin_listen = 127.0.0.1:8001 reuseport backlog=16384, 127.0.0.1:8444 http2 ssl reuseport backlog=16384
admin_gui_listen = 0.0.0.0:8002, 0.0.0.0:8445 ssl
status_listen = off
status_listen = 127.0.0.1:8007 reuseport backlog=16384
cluster_listen = 0.0.0.0:8005
cluster_control_plane = 127.0.0.1:8005
cluster_cert = NONE
Expand Down

0 comments on commit 1ab6ead

Please sign in to comment.