Commit f7c78498 authored by Ben Wilson's avatar Ben Wilson

Bypass lua checking when the request is not a POST

Fixed nit, added changeset for rpc-proxy
parent 458dd0ef
---
'@eth-optimism/rpc-proxy': patch
---
Initial rpc-proxy package
...@@ -69,7 +69,9 @@ http { ...@@ -69,7 +69,9 @@ http {
} }
location / { location / {
set $jsonrpc_whitelist {{env.Getenv "ETH_CALLS_ALLOWED"}}; set $jsonrpc_whitelist {{env.Getenv "ETH_CALLS_ALLOWED"}};
access_by_lua_file 'eth-jsonrpc-access.lua'; if ($request_method = POST) {
access_by_lua_file 'eth-jsonrpc-access.lua';
}
proxy_pass http://sequencer; proxy_pass http://sequencer;
} }
} }
......
{
"name": "@eth-optimism/rpc-proxy",
"version": "0.0.1",
"private": true,
"devDependencies": {}
}
...@@ -11,7 +11,8 @@ ...@@ -11,7 +11,8 @@
"specs", "specs",
"go/gas-oracle", "go/gas-oracle",
"go/batch-submitter", "go/batch-submitter",
"go/proxyd" "go/proxyd",
"ops/docker/rpc-proxy"
], ],
"nohoist": [ "nohoist": [
"examples/*" "examples/*"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment