Skip to content

Commit

Permalink
move stats and visualizer to https
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusvigariu committed Jun 28, 2024
1 parent 89dcab6 commit 1cf8285
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docker-compose/envs/common-frontend.env
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ NEXT_PUBLIC_OG_DESCRIPTION="Nexscan is a tool for analyzing the Nexis blockchain
NEXT_PUBLIC_OG_IMAGE_URL=https://raw.githubusercontent.com/Nexis-Network/nexscan-data/main/logos/logo-dark-full.svg
NEXT_PUBLIC_OTHER_LINKS=[{'url':'https://wallet.nexis.network/','text':'Web Wallet'}, {'url':'https://bridge.nexis.network','text':'Bridge'}, {'url':'https://governance.nexis.network/','text':'Governance'}]
NEXT_PUBLIC_PROMOTE_BLOCKSCOUT_IN_TITLE=false
NEXT_PUBLIC_STATS_API_HOST=http://zkevm-testnet.nexscan.io:8080
NEXT_PUBLIC_VISUALIZE_API_HOST=http://zkevm-testnet.nexscan.io:8081
NEXT_PUBLIC_STATS_API_HOST=https://zkevm-testnet.nexscan.io:8080
NEXT_PUBLIC_VISUALIZE_API_HOST=https://zkevm-testnet.nexscan.io:8081
NEXT_PUBLIC_WEB3_WALLETS=['metamask','coinbase']
18 changes: 16 additions & 2 deletions docker-compose/proxy/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,15 @@ server {
}
}
server {
listen 8080;
listen 8080 ssl;
server_name zkevm-testnet.nexscan.io;

ssl_certificate /etc/letsencrypt/live/zkevm-testnet.nexscan.io/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/zkevm-testnet.nexscan.io/privkey.pem;

include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

proxy_http_version 1.1;
proxy_hide_header Access-Control-Allow-Origin;
proxy_hide_header Access-Control-Allow-Methods;
Expand All @@ -67,8 +74,15 @@ server {
}
}
server {
listen 8081;
listen 8081 ssl;
server_name zkevm-testnet.nexscan.io;

ssl_certificate /etc/letsencrypt/live/zkevm-testnet.nexscan.io/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/zkevm-testnet.nexscan.io/privkey.pem;

include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

proxy_http_version 1.1;
proxy_hide_header Access-Control-Allow-Origin;
proxy_hide_header Access-Control-Allow-Methods;
Expand Down

0 comments on commit 1cf8285

Please sign in to comment.