@@ -53,6 +53,7 @@ env PATH; # for searching external plugin runner's binary
5353
5454# reserved environment variables for configuration
5555env APISIX_DEPLOYMENT_ETCD_HOST;
56+ env GCP_SERVICE_ACCOUNT;
5657
5758{% if envs then %}
5859{% for _, name in ipairs(envs) do %}
@@ -211,7 +212,6 @@ stream {
211212 apisix.stream_init_worker()
212213 }
213214
214- {% if (events.module or "") == "lua-resty-events" then %}
215215 # the server block for lua-resty-events
216216 server {
217217 listen unix:{*apisix_lua_home*}/logs/stream_worker_events.sock;
@@ -220,7 +220,6 @@ stream {
220220 require("resty.events.compat").run()
221221 }
222222 }
223- {% end %}
224223
225224 server {
226225 {% for _, item in ipairs(stream_proxy.tcp or {}) do %}
@@ -532,7 +531,6 @@ http {
532531 apisix.http_exit_worker()
533532 }
534533
535- {% if (events.module or "") == "lua-resty-events" then %}
536534 # the server block for lua-resty-events
537535 server {
538536 listen unix:{*apisix_lua_home*}/logs/worker_events.sock;
@@ -543,7 +541,6 @@ http {
543541 }
544542 }
545543 }
546- {% end %}
547544
548545 {% if enable_control then %}
549546 server {
@@ -643,6 +640,10 @@ http {
643640 allow all;
644641 {%end%}
645642
643+ {% if use_apisix_base then %}
644+ set $apisix_request_id $request_id;
645+ lua_error_log_request_id $apisix_request_id;
646+ {% end %}
646647 location /apisix/admin {
647648 content_by_lua_block {
648649 apisix.http_admin()
@@ -822,6 +823,11 @@ http {
822823 set $llm_completion_tokens '0';
823824
824825
826+ {% if use_apisix_base then %}
827+ set $apisix_request_id $request_id;
828+ lua_error_log_request_id $apisix_request_id;
829+ {% end %}
830+
825831 access_by_lua_block {
826832 apisix.http_access_phase()
827833 }
0 commit comments