diff --git a/apps/api/jobs/ApiAction.lua b/apps/api/jobs/ApiAction.lua index 72edbc5..e66e118 100644 --- a/apps/api/jobs/ApiAction.lua +++ b/apps/api/jobs/ApiAction.lua @@ -64,6 +64,9 @@ upstream upstream_ws_${api_key} { ${entrypoints/_upstream_ws()} include /massbit/massbitroute/app/src/sites/services/gateway/etc/_upstream_server_ws.conf; } +]], + _api_method_provider = [[ + add_header X-Accel-Expires $http_x_mbr_method_ttl; ]], _api_method1 = "", _api_method = [[ @@ -186,7 +189,7 @@ server { server { listen unix:/tmp/${server_name}.sock; location / { - ${_api_method1()} + ${_api_method_provider()} proxy_pass http://${blockchain}-${network}.node.mbr.]] .. _domain_name .. [[;