Skip to content

Commit

Permalink
fix: Anvil config for provernet
Browse files Browse the repository at this point in the history
  • Loading branch information
spalladino committed Aug 30, 2024
1 parent 009b655 commit e127933
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion iac/mainnet-fork/nginx/gateway.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ server {

location /admin-{{ADMIN_API_KEY}} {
proxy_pass http://0.0.0.0:8544;
rewrite ^/{{ADMIN_API_KEY}}(.*) /$1 break;
rewrite ^/admin-{{ADMIN_API_KEY}}(.*) /$1 break;
}

location /{{PUBLIC_API_KEY}} {
Expand Down
4 changes: 4 additions & 0 deletions iac/mainnet-fork/scripts/run_nginx_anvil.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ echo "Replacing api keys in nginx config..."
sed -i 's/{{PUBLIC_API_KEY}}/'$API_KEY'/g' /etc/nginx/gateway.conf
sed -i 's/{{ADMIN_API_KEY}}/'$FORK_ADMIN_API_KEY'/g' /etc/nginx/gateway.conf

# Resulting config
cat /etc/nginx/gateway.conf
echo

# Run nginx and anvil alongside each other
trap 'kill $(jobs -p)' SIGTERM

Expand Down

0 comments on commit e127933

Please sign in to comment.