nic-6443 commented on code in PR #12200:
URL: https://github.com/apache/apisix/pull/12200#discussion_r2086056188
##########
apisix/cli/ngx_tpl.lua:
##########
@@ -550,6 +554,23 @@ http {
}
{% end %}
+ {% if status_standalone then %}
+ server {
+ listen {* status_server_addr *} enable_process=privileged_agent;
+ access_log off;
+ location /status {
+ content_by_lua_block {
+ apisix.status_standalone()
+ }
+ }
+ location /status/ready {
+ content_by_lua_block {
+ apisix.status_standalone_ready()
Review Comment:
We should provide a unified `/status/ready` endpoint that not only supports
standalone mode but also does support the mode based on etcd as the
configuration center.
##########
apisix/cli/ngx_tpl.lua:
##########
@@ -550,6 +554,23 @@ http {
}
{% end %}
+ {% if status_standalone then %}
+ server {
+ listen {* status_server_addr *} enable_process=privileged_agent;
+ access_log off;
+ location /status {
+ content_by_lua_block {
+ apisix.status_standalone()
+ }
+ }
+ location /status/ready {
+ content_by_lua_block {
+ apisix.status_standalone_ready()
Review Comment:
We should provide a unified `/status/ready` endpoint that not only supports
standalone mode but also support the mode based on etcd as the configuration
center.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]