Skip to content

Commit

Permalink
Change explorer port to 8080, remove ads
Browse files Browse the repository at this point in the history
  • Loading branch information
vbaranov committed Oct 16, 2023
1 parent 2d23a2a commit 21e6891
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
7 changes: 5 additions & 2 deletions suave/devenv/blockscout/envs/common-frontend.env
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
NEXT_PUBLIC_API_HOST=localhost
NEXT_PUBLIC_API_PORT=8080
NEXT_PUBLIC_API_PROTOCOL=http
NEXT_PUBLIC_STATS_API_HOST=http://localhost:8080
NEXT_PUBLIC_STATS_API_HOST=http://localhost:8081
NEXT_PUBLIC_NETWORK_NAME=SUAVE
NEXT_PUBLIC_NETWORK_SHORT_NAME=SUAVE
NEXT_PUBLIC_NETWORK_ID=5
Expand All @@ -21,4 +22,6 @@ NEXT_PUBLIC_NETWORK_ICON_DARK=https://raw.githubusercontent.com/blockscout/front
NEXT_PUBLIC_HOMEPAGE_PLATE_BACKGROUND=rgba(46, 46, 46, 1)
NEXT_PUBLIC_HOMEPAGE_PLATE_TEXT_COLOR=rgba(48, 210, 248, 1)
NEXT_PUBLIC_API_SPEC_URL=https://raw.githubusercontent.com/blockscout/blockscout-api-v2-swagger/main/swagger.yaml
NEXT_PUBLIC_OG_IMAGE_URL=https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/og-images/suave-testnet.png
NEXT_PUBLIC_OG_IMAGE_URL=https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/og-images/suave-testnet.png
NEXT_PUBLIC_AD_BANNER_PROVIDER=none
NEXT_PUBLIC_AD_TEXT_PROVIDER=none
6 changes: 3 additions & 3 deletions suave/devenv/blockscout/proxy/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ map $http_upgrade $connection_upgrade {
}

server {
listen 80;
listen 8080;
server_name localhost;
proxy_http_version 1.1;

Expand Down Expand Up @@ -34,12 +34,12 @@ server {
}

server {
listen 8080;
listen 8081;
server_name localhost;
proxy_http_version 1.1;
proxy_hide_header Access-Control-Allow-Origin;
proxy_hide_header Access-Control-Allow-Methods;
add_header 'Access-Control-Allow-Origin' 'http://localhost' always;
add_header 'Access-Control-Allow-Origin' 'http://localhost:8080' always;
add_header 'Access-Control-Allow-Credentials' 'true' always;
add_header 'Access-Control-Allow-Methods' 'PUT, GET, POST, OPTIONS, DELETE, PATCH' always;

Expand Down
2 changes: 1 addition & 1 deletion suave/devenv/blockscout/services/docker-compose-nginx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ services:
BACK_PROXY_PASS: ${BACK_PROXY_PASS:-http://blockscout-backend:4000}
FRONT_PROXY_PASS: ${FRONT_PROXY_PASS:-http://blockscout-frontend:3000}
ports:
- 80:80
- 8080:8080
- 8081:8081

0 comments on commit 21e6891

Please sign in to comment.