Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion apps/api/jobs/ApiAction.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [[
Expand Down Expand Up @@ -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 ..
[[;
Expand Down