diff --git a/docker-compose/envs/common-frontend.env b/docker-compose/envs/common-frontend.env index c100ec113..30d813628 100644 --- a/docker-compose/envs/common-frontend.env +++ b/docker-compose/envs/common-frontend.env @@ -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'] diff --git a/docker-compose/proxy/default.conf.template b/docker-compose/proxy/default.conf.template index 558c03418..ce747f992 100644 --- a/docker-compose/proxy/default.conf.template +++ b/docker-compose/proxy/default.conf.template @@ -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; @@ -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;