forked from cerc-io/stack-orchestrator
Swap caddy for nginx
This commit is contained in:
1 parent
f20dcb8457
commit
80b299c1e5
5 files changed
+60
-11
No files matched your search
@@ -0,0 +1,38 @@
|
||||
:80 {
|
||||
handle /pay* {
|
||||
reverse_proxy http://go-nitro-bob:8547
|
||||
}
|
||||
|
||||
@eth-key-in-header {
|
||||
path_regexp /eth/?$
|
||||
header X-Api-Key *
|
||||
}
|
||||
|
||||
handle @eth-key-in-header {
|
||||
forward_auth go-nitro-bob:8547 {
|
||||
uri /auth/{header.x-api-key}
|
||||
}
|
||||
rewrite * /
|
||||
reverse_proxy http://fixturenet-eth-geth-1:8545
|
||||
}
|
||||
|
||||
@eth-key-in-path {
|
||||
path_regexp apikey eth/(.+)$
|
||||
}
|
||||
|
||||
handle @eth-key-in-path {
|
||||
forward_auth go-nitro-bob:8547 {
|
||||
uri /auth/{re.apikey.1}
|
||||
}
|
||||
rewrite * /
|
||||
reverse_proxy http://fixturenet-eth-geth-1:8545
|
||||
}
|
||||
|
||||
handle /eth* {
|
||||
respond "401 Unauthorized" 401
|
||||
}
|
||||
|
||||
handle {
|
||||
reverse_proxy http://go-nitro-alice:4206
|
||||
}
|
||||
}
|
||||
@@ -34,10 +34,10 @@ server {
|
||||
}
|
||||
|
||||
## payments
|
||||
location /pay {
|
||||
proxy_buffering off;
|
||||
proxy_pass http://go-nitro-bob:8547/pay;
|
||||
}
|
||||
location /pay {
|
||||
proxy_buffering off;
|
||||
proxy_pass http://go-nitro-bob:8547/pay;
|
||||
}
|
||||
|
||||
location = /auth {
|
||||
internal;
|
||||
|
||||
Reference in new issue
Block a user