diff --git a/docker-compose/docker-compose.yml b/docker-compose/docker-compose.yml index 1ce4c300be..bb4cd34d52 100644 --- a/docker-compose/docker-compose.yml +++ b/docker-compose/docker-compose.yml @@ -40,11 +40,6 @@ services: RELEASE_VERSION: 6.7.0 links: - db:database - environment: - ETHEREUM_JSONRPC_HTTP_URL: http://host.docker.internal:8545/ - ETHEREUM_JSONRPC_TRACE_URL: http://host.docker.internal:8545/ - ETHEREUM_JSONRPC_WS_URL: ws://host.docker.internal:8545/ - CHAIN_ID: '1337' visualizer: extends: diff --git a/docker-compose/envs/common-blockscout.env b/docker-compose/envs/common-blockscout.env index 23611894a5..0fcc09c797 100644 --- a/docker-compose/envs/common-blockscout.env +++ b/docker-compose/envs/common-blockscout.env @@ -1,88 +1,27 @@ ETHEREUM_JSONRPC_VARIANT=geth -ETHEREUM_JSONRPC_HTTP_URL=http://host.docker.internal:8545/ -# ETHEREUM_JSONRPC_FALLBACK_HTTP_URL= -DATABASE_URL=postgresql://blockscout:ceWb1MeLBEeOIfk65gU8EjF8@db:5432/blockscout -# DATABASE_EVENT_URL= -# DATABASE_QUEUE_TARGET -# TEST_DATABASE_URL= -# TEST_DATABASE_READ_ONLY_API_URL= -ETHEREUM_JSONRPC_TRACE_URL=http://host.docker.internal:8545/ -# ETHEREUM_JSONRPC_FALLBACK_TRACE_URL= -# ETHEREUM_JSONRPC_FALLBACK_ETH_CALL_URL= -# ETHEREUM_JSONRPC_ETH_CALL_URL= -# ETHEREUM_JSONRPC_HTTP_TIMEOUT= -# CHAIN_TYPE= -NETWORK= -SUBNETWORK=Awesome chain +ETHEREUM_JSONRPC_HTTP_URL=https://zkevm-testnet.nexis.network +ETHEREUM_JSONRPC_WS_URL=wss://zkevm-testnet.nexis.network +ETHEREUM_JSONRPC_TRACE_URL=https://zkevm-testnet.nexis.network +NETWORK=Nexis +SUBNETWORK=Nexis LOGO=/images/blockscout_logo.svg -# ETHEREUM_JSONRPC_WS_URL= ETHEREUM_JSONRPC_TRANSPORT=http ETHEREUM_JSONRPC_DISABLE_ARCHIVE_BALANCES=false -# ETHEREUM_JSONRPC_ARCHIVE_BALANCES_WINDOW=200 -# ETHEREUM_JSONRPC_HTTP_HEADERS= -# ETHEREUM_JSONRPC_WAIT_PER_TIMEOUT= -# ETHEREUM_JSONRPC_GETH_TRACE_BY_BLOCK= -# ETHEREUM_JSONRPC_GETH_ALLOW_EMPTY_TRACES= IPC_PATH= NETWORK_PATH=/ BLOCKSCOUT_HOST= BLOCKSCOUT_PROTOCOL= -SECRET_KEY_BASE=56NtB48ear7+wMSf0IQuWDAAazhpb31qyc7GiyspBP2vh7t5zlCsF5QDv76chXeN -# CHECK_ORIGIN= PORT=4000 -COIN_NAME= -# METADATA_CONTRACT= -# VALIDATORS_CONTRACT= -# KEYS_MANAGER_CONTRACT= -# REWARDS_CONTRACT= -# TOKEN_BRIDGE_CONTRACT= +COIN_NAME=NZT EMISSION_FORMAT=DEFAULT -# CHAIN_SPEC_PATH= -# SUPPLY_MODULE= -COIN= +COIN=NZT EXCHANGE_RATES_COIN= -# EXCHANGE_RATES_MARKET_CAP_SOURCE= -# EXCHANGE_RATES_TVL_SOURCE= -# EXCHANGE_RATES_PRICE_SOURCE= -# EXCHANGE_RATES_COINGECKO_COIN_ID= -# EXCHANGE_RATES_COINGECKO_SECONDARY_COIN_ID= -# EXCHANGE_RATES_COINGECKO_API_KEY= -# EXCHANGE_RATES_COINGECKO_BASE_URL= -# EXCHANGE_RATES_COINGECKO_BASE_PRO_URL= -# EXCHANGE_RATES_COINMARKETCAP_BASE_URL= -# EXCHANGE_RATES_COINMARKETCAP_API_KEY= -# EXCHANGE_RATES_COINMARKETCAP_COIN_ID= -# EXCHANGE_RATES_COINMARKETCAP_SECONDARY_COIN_ID= -# EXCHANGE_RATES_CRYPTOCOMPARE_SECONDARY_COIN_SYMBOL= POOL_SIZE=80 -# EXCHANGE_RATES_COINGECKO_PLATFORM_ID= -# TOKEN_EXCHANGE_RATE_INTERVAL= -# TOKEN_EXCHANGE_RATE_REFETCH_INTERVAL= -# TOKEN_EXCHANGE_RATE_MAX_BATCH_SIZE= -# DISABLE_TOKEN_EXCHANGE_RATE= POOL_SIZE_API=10 ECTO_USE_SSL=false -# DATADOG_HOST= -# DATADOG_PORT= -# SPANDEX_BATCH_SIZE= -# SPANDEX_SYNC_THRESHOLD= HEART_BEAT_TIMEOUT=30 -# HEART_COMMAND= -# BLOCKSCOUT_VERSION= RELEASE_LINK= BLOCK_TRANSFORMER=base -# BLOCK_RANGES= -# FIRST_BLOCK= -# LAST_BLOCK= -# TRACE_BLOCK_RANGES= -# TRACE_FIRST_BLOCK= -# TRACE_LAST_BLOCK= -# FOOTER_CHAT_LINK= -# FOOTER_FORUM_LINK_ENABLED= -# FOOTER_FORUM_LINK= -# FOOTER_TELEGRAM_LINK_ENABLED= -# FOOTER_TELEGRAM_LINK= -# FOOTER_GITHUB_LINK= FOOTER_LOGO=/images/blockscout_logo.svg FOOTER_LINK_TO_OTHER_EXPLORERS=false FOOTER_OTHER_EXPLORERS={} @@ -100,28 +39,15 @@ CACHE_MARKET_HISTORY_PERIOD=21600 CACHE_ADDRESS_TRANSACTIONS_COUNTER_PERIOD=1800 CACHE_ADDRESS_TOKENS_USD_SUM_PERIOD=3600 CACHE_ADDRESS_TOKEN_TRANSFERS_COUNTER_PERIOD=1800 -# CACHE_TRANSACTIONS_24H_STATS_PERIOD= -# CACHE_FRESH_PENDING_TRANSACTIONS_COUNTER_PERIOD= -# TOKEN_BALANCE_ON_DEMAND_FETCHER_THRESHOLD= -# COIN_BALANCE_ON_DEMAND_FETCHER_THRESHOLD= -# CONTRACT_CODE_ON_DEMAND_FETCHER_THRESHOLD= -# TOKEN_INSTANCE_METADATA_REFETCH_ON_DEMAND_FETCHER_THRESHOLD= TOKEN_METADATA_UPDATE_INTERVAL=172800 CONTRACT_VERIFICATION_ALLOWED_SOLIDITY_EVM_VERSIONS=homestead,tangerineWhistle,spuriousDragon,byzantium,constantinople,petersburg,istanbul,berlin,london,paris,shanghai,cancun,default CONTRACT_VERIFICATION_ALLOWED_VYPER_EVM_VERSIONS=byzantium,constantinople,petersburg,istanbul,berlin,paris,shanghai,cancun,default -# CONTRACT_VERIFICATION_MAX_LIBRARIES=10 CONTRACT_MAX_STRING_LENGTH_WITHOUT_TRIMMING=2040 -# CONTRACT_DISABLE_INTERACTION= -# CONTRACT_AUDIT_REPORTS_AIRTABLE_URL= -# CONTRACT_AUDIT_REPORTS_AIRTABLE_API_KEY= -# CONTRACT_CERTIFIED_LIST= UNCLES_IN_AVERAGE_BLOCK_TIME=false DISABLE_WEBAPP=false API_V2_ENABLED=true API_V1_READ_METHODS_DISABLED=false API_V1_WRITE_METHODS_DISABLED=false -# API_RATE_LIMIT_DISABLED=true -# API_SENSITIVE_ENDPOINTS_KEY= API_RATE_LIMIT_TIME_INTERVAL=1s API_RATE_LIMIT_BY_IP_TIME_INTERVAL=5m API_RATE_LIMIT=50 @@ -131,17 +57,6 @@ API_RATE_LIMIT_WHITELISTED_IPS= API_RATE_LIMIT_STATIC_API_KEY= API_RATE_LIMIT_UI_V2_WITH_TOKEN=5 API_RATE_LIMIT_BY_IP=3000 -# API_GRAPHQL_ENABLED= -# API_GRAPHQL_MAX_COMPLEXITY= -# API_GRAPHQL_TOKEN_LIMIT= -# API_GRAPHQL_DEFAULT_TRANSACTION_HASH= -# API_GRAPHQL_RATE_LIMIT_DISABLED= -# API_GRAPHQL_RATE_LIMIT= -# API_GRAPHQL_RATE_LIMIT_BY_KEY= -# API_GRAPHQL_RATE_LIMIT_TIME_INTERVAL= -# API_GRAPHQL_RATE_LIMIT_BY_IP= -# API_GRAPHQL_RATE_LIMIT_BY_IP_TIME_INTERVAL= -# API_GRAPHQL_RATE_LIMIT_STATIC_API_KEY= DISABLE_INDEXER=false DISABLE_REALTIME_INDEXER=false DISABLE_CATCHUP_INDEXER=false @@ -152,124 +67,6 @@ INDEXER_DISABLE_TOKEN_INSTANCE_SANITIZE_FETCHER=false INDEXER_DISABLE_TOKEN_INSTANCE_LEGACY_SANITIZE_FETCHER=false INDEXER_DISABLE_PENDING_TRANSACTIONS_FETCHER=false INDEXER_DISABLE_INTERNAL_TRANSACTIONS_FETCHER=false -# INDEXER_DISABLE_CATALOGED_TOKEN_UPDATER_FETCHER= -# INDEXER_DISABLE_BLOCK_REWARD_FETCHER= -# INDEXER_DISABLE_EMPTY_BLOCKS_SANITIZER= -# INDEXER_DISABLE_WITHDRAWALS_FETCHER= -# INDEXER_CATCHUP_BLOCKS_BATCH_SIZE= -# INDEXER_CATCHUP_BLOCKS_CONCURRENCY= -# INDEXER_CATCHUP_BLOCK_INTERVAL= -# INDEXER_EMPTY_BLOCKS_SANITIZER_INTERVAL= -# INDEXER_INTERNAL_TRANSACTIONS_BATCH_SIZE= -# INDEXER_INTERNAL_TRANSACTIONS_CONCURRENCY= -# ETHEREUM_JSONRPC_DEBUG_TRACE_TRANSACTION_TIMEOUT= -# INDEXER_BLOCK_REWARD_BATCH_SIZE= -# INDEXER_BLOCK_REWARD_CONCURRENCY= -# INDEXER_TOKEN_INSTANCE_USE_BASE_URI_RETRY= -# INDEXER_TOKEN_INSTANCE_RETRY_REFETCH_INTERVAL= -# INDEXER_TOKEN_INSTANCE_RETRY_BATCH_SIZE=10 -# INDEXER_TOKEN_INSTANCE_RETRY_CONCURRENCY= -# INDEXER_TOKEN_INSTANCE_REALTIME_BATCH_SIZE=1 -# INDEXER_TOKEN_INSTANCE_REALTIME_CONCURRENCY= -# INDEXER_TOKEN_INSTANCE_SANITIZE_BATCH_SIZE=10 -# INDEXER_TOKEN_INSTANCE_SANITIZE_CONCURRENCY= -# INDEXER_TOKEN_INSTANCE_LEGACY_SANITIZE_BATCH_SIZE=10 -# INDEXER_TOKEN_INSTANCE_LEGACY_SANITIZE_CONCURRENCY=10 -# INDEXER_DISABLE_TOKEN_INSTANCE_ERC_1155_SANITIZE_FETCHER=false -# INDEXER_DISABLE_TOKEN_INSTANCE_ERC_721_SANITIZE_FETCHER=false -# INDEXER_TOKEN_INSTANCE_ERC_1155_SANITIZE_CONCURRENCY=2 -# INDEXER_TOKEN_INSTANCE_ERC_1155_SANITIZE_BATCH_SIZE=10 -# INDEXER_TOKEN_INSTANCE_ERC_721_SANITIZE_CONCURRENCY=2 -# INDEXER_TOKEN_INSTANCE_ERC_721_SANITIZE_BATCH_SIZE=10 -# INDEXER_TOKEN_INSTANCE_ERC_721_SANITIZE_TOKENS_BATCH_SIZE=100 -# TOKEN_INSTANCE_OWNER_MIGRATION_CONCURRENCY=5 -# TOKEN_INSTANCE_OWNER_MIGRATION_BATCH_SIZE=50 -# INDEXER_COIN_BALANCES_BATCH_SIZE= -# INDEXER_COIN_BALANCES_CONCURRENCY= -# INDEXER_RECEIPTS_BATCH_SIZE= -# INDEXER_RECEIPTS_CONCURRENCY= -# INDEXER_TOKEN_CONCURRENCY= -# INDEXER_TOKEN_BALANCES_BATCH_SIZE= -# INDEXER_TOKEN_BALANCES_CONCURRENCY= -# INDEXER_TX_ACTIONS_ENABLE= -# INDEXER_TX_ACTIONS_MAX_TOKEN_CACHE_SIZE= -# INDEXER_TX_ACTIONS_REINDEX_FIRST_BLOCK= -# INDEXER_TX_ACTIONS_REINDEX_LAST_BLOCK= -# INDEXER_TX_ACTIONS_REINDEX_PROTOCOLS= -# INDEXER_TX_ACTIONS_AAVE_V3_POOL_CONTRACT= -# INDEXER_POLYGON_EDGE_L1_RPC= -# INDEXER_POLYGON_EDGE_L1_EXIT_HELPER_CONTRACT= -# INDEXER_POLYGON_EDGE_L1_WITHDRAWALS_START_BLOCK= -# INDEXER_POLYGON_EDGE_L1_STATE_SENDER_CONTRACT= -# INDEXER_POLYGON_EDGE_L1_DEPOSITS_START_BLOCK= -# INDEXER_POLYGON_EDGE_L2_STATE_SENDER_CONTRACT= -# INDEXER_POLYGON_EDGE_L2_WITHDRAWALS_START_BLOCK= -# INDEXER_POLYGON_EDGE_L2_STATE_RECEIVER_CONTRACT= -# INDEXER_POLYGON_EDGE_L2_DEPOSITS_START_BLOCK= -# INDEXER_POLYGON_EDGE_ETH_GET_LOGS_RANGE_SIZE= -# INDEXER_POLYGON_ZKEVM_BATCHES_ENABLED= -# INDEXER_POLYGON_ZKEVM_BATCHES_CHUNK_SIZE= -# INDEXER_POLYGON_ZKEVM_BATCHES_RECHECK_INTERVAL= -# INDEXER_POLYGON_ZKEVM_L1_RPC= -# INDEXER_POLYGON_ZKEVM_L1_BRIDGE_START_BLOCK= -# INDEXER_POLYGON_ZKEVM_L1_BRIDGE_CONTRACT= -# INDEXER_POLYGON_ZKEVM_L1_BRIDGE_NATIVE_SYMBOL= -# INDEXER_POLYGON_ZKEVM_L1_BRIDGE_NATIVE_DECIMALS= -# INDEXER_POLYGON_ZKEVM_L1_BRIDGE_NETWORK_ID= -# INDEXER_POLYGON_ZKEVM_L1_BRIDGE_ROLLUP_INDEX= -# INDEXER_POLYGON_ZKEVM_L2_BRIDGE_START_BLOCK= -# INDEXER_POLYGON_ZKEVM_L2_BRIDGE_CONTRACT= -# INDEXER_POLYGON_ZKEVM_L2_BRIDGE_NETWORK_ID= -# INDEXER_POLYGON_ZKEVM_L2_BRIDGE_ROLLUP_INDEX= -# INDEXER_ZKSYNC_BATCHES_ENABLED= -# INDEXER_ZKSYNC_BATCHES_CHUNK_SIZE= -# INDEXER_ZKSYNC_NEW_BATCHES_MAX_RANGE= -# INDEXER_ZKSYNC_NEW_BATCHES_RECHECK_INTERVAL= -# INDEXER_ZKSYNC_L1_RPC= -# INDEXER_ZKSYNC_BATCHES_STATUS_RECHECK_INTERVAL= -# INDEXER_REALTIME_FETCHER_MAX_GAP= -# INDEXER_FETCHER_INIT_QUERY_LIMIT= -# INDEXER_TOKEN_BALANCES_FETCHER_INIT_QUERY_LIMIT= -# INDEXER_COIN_BALANCES_FETCHER_INIT_QUERY_LIMIT= -# INDEXER_GRACEFUL_SHUTDOWN_PERIOD= -# WITHDRAWALS_FIRST_BLOCK= -# INDEXER_OPTIMISM_L1_RPC= -# INDEXER_OPTIMISM_L1_BATCH_START_BLOCK= -# INDEXER_OPTIMISM_L1_BATCH_INBOX= -# INDEXER_OPTIMISM_L1_BATCH_SUBMITTER= -# INDEXER_OPTIMISM_L1_BATCH_BLOCKS_CHUNK_SIZE= -# INDEXER_OPTIMISM_L2_BATCH_GENESIS_BLOCK_NUMBER= -# INDEXER_OPTIMISM_L1_PORTAL_CONTRACT= -# INDEXER_OPTIMISM_L1_OUTPUT_ROOTS_START_BLOCK= -# INDEXER_OPTIMISM_L1_OUTPUT_ORACLE_CONTRACT= -# INDEXER_OPTIMISM_L1_WITHDRAWALS_START_BLOCK= -# INDEXER_OPTIMISM_L2_WITHDRAWALS_START_BLOCK= -# INDEXER_OPTIMISM_L2_MESSAGE_PASSER_CONTRACT= -# INDEXER_OPTIMISM_L1_DEPOSITS_START_BLOCK= -# INDEXER_OPTIMISM_L1_DEPOSITS_BATCH_SIZE= -# ROOTSTOCK_REMASC_ADDRESS= -# ROOTSTOCK_BRIDGE_ADDRESS= -# ROOTSTOCK_LOCKED_BTC_CACHE_PERIOD= -# ROOTSTOCK_LOCKING_CAP= -# INDEXER_DISABLE_ROOTSTOCK_DATA_FETCHER= -# INDEXER_ROOTSTOCK_DATA_FETCHER_INTERVAL= -# INDEXER_ROOTSTOCK_DATA_FETCHER_BATCH_SIZE= -# INDEXER_ROOTSTOCK_DATA_FETCHER_CONCURRENCY= -# INDEXER_ROOTSTOCK_DATA_FETCHER_DB_BATCH_SIZE= -# INDEXER_BEACON_RPC_URL=http://localhost:5052 -# INDEXER_DISABLE_BEACON_BLOB_FETCHER= -# INDEXER_BEACON_BLOB_FETCHER_SLOT_DURATION=12 -# INDEXER_BEACON_BLOB_FETCHER_REFERENCE_SLOT=8000000 -# INDEXER_BEACON_BLOB_FETCHER_REFERENCE_TIMESTAMP=1702824023 -# INDEXER_BEACON_BLOB_FETCHER_START_BLOCK=19200000 -# INDEXER_BEACON_BLOB_FETCHER_END_BLOCK=0 -# TOKEN_ID_MIGRATION_FIRST_BLOCK= -# TOKEN_ID_MIGRATION_CONCURRENCY= -# TOKEN_ID_MIGRATION_BATCH_SIZE= -# MISSING_BALANCE_OF_TOKENS_WINDOW_SIZE= -# INDEXER_INTERNAL_TRANSACTIONS_TRACER_TYPE= -# WEBAPP_URL= -# API_URL= SHOW_ADDRESS_MARKETCAP_PERCENTAGE=true CHECKSUM_ADDRESS_HASHES=true CHECKSUM_FUNCTION=eth @@ -283,21 +80,9 @@ TXS_STATS_DAYS_TO_COMPILE_AT_INIT=10 COIN_BALANCE_HISTORY_DAYS=90 APPS_MENU=true EXTERNAL_APPS=[] -# GAS_PRICE= -# GAS_PRICE_ORACLE_CACHE_PERIOD= -# GAS_PRICE_ORACLE_SIMPLE_TRANSACTION_GAS= -# GAS_PRICE_ORACLE_NUM_OF_BLOCKS= -# GAS_PRICE_ORACLE_SAFELOW_PERCENTILE= -# GAS_PRICE_ORACLE_AVERAGE_PERCENTILE= -# GAS_PRICE_ORACLE_FAST_PERCENTILE= -# GAS_PRICE_ORACLE_SAFELOW_TIME_COEFFICIENT= -# GAS_PRICE_ORACLE_AVERAGE_TIME_COEFFICIENT= -# GAS_PRICE_ORACLE_FAST_TIME_COEFFICIENT= -# RESTRICTED_LIST= -# RESTRICTED_LIST_KEY= SHOW_MAINTENANCE_ALERT=false MAINTENANCE_ALERT_MESSAGE= -CHAIN_ID= +CHAIN_ID=1001 MAX_SIZE_UNLESS_HIDE_ARRAY=50 HIDE_BLOCK_MINER=false DISPLAY_TOKEN_ICONS=false @@ -307,13 +92,9 @@ RE_CAPTCHA_V3_SECRET_KEY= RE_CAPTCHA_V3_CLIENT_KEY= RE_CAPTCHA_DISABLED=false JSON_RPC= -# API_RATE_LIMIT_HAMMER_REDIS_URL=redis://redis-db:6379/1 -# API_RATE_LIMIT_IS_BLOCKSCOUT_BEHIND_PROXY=false API_RATE_LIMIT_UI_V2_TOKEN_TTL_IN_SECONDS=18000 FETCH_REWARDS_WAY=trace_block MICROSERVICE_SC_VERIFIER_ENABLED=true -# MICROSERVICE_SC_VERIFIER_URL=http://smart-contract-verifier:8050/ -# MICROSERVICE_SC_VERIFIER_TYPE=sc_verifier MICROSERVICE_SC_VERIFIER_URL=https://eth-bytecode-db.services.blockscout.com/ MICROSERVICE_SC_VERIFIER_TYPE=eth_bytecode_db MICROSERVICE_ETH_BYTECODE_DB_INTERVAL_BETWEEN_LOOKUPS=10m @@ -322,66 +103,15 @@ MICROSERVICE_VISUALIZE_SOL2UML_ENABLED=true MICROSERVICE_VISUALIZE_SOL2UML_URL=http://visualizer:8050/ MICROSERVICE_SIG_PROVIDER_ENABLED=true MICROSERVICE_SIG_PROVIDER_URL=http://sig-provider:8050/ -# MICROSERVICE_BENS_URL= -# MICROSERVICE_BENS_ENABLED= MICROSERVICE_ACCOUNT_ABSTRACTION_ENABLED=false MICROSERVICE_ACCOUNT_ABSTRACTION_URL=http://user-ops-indexer:8050/ -# MICROSERVICE_METADATA_URL= -# MICROSERVICE_METADATA_ENABLED= DECODE_NOT_A_CONTRACT_CALLS=true -# DATABASE_READ_ONLY_API_URL= -# ACCOUNT_DATABASE_URL= -# ACCOUNT_POOL_SIZE= -# ACCOUNT_AUTH0_DOMAIN= -# ACCOUNT_AUTH0_CLIENT_ID= -# ACCOUNT_AUTH0_CLIENT_SECRET= -# ACCOUNT_PUBLIC_TAGS_AIRTABLE_URL= -# ACCOUNT_PUBLIC_TAGS_AIRTABLE_API_KEY= -# ACCOUNT_SENDGRID_API_KEY= -# ACCOUNT_SENDGRID_SENDER= -# ACCOUNT_SENDGRID_TEMPLATE= -# ACCOUNT_VERIFICATION_EMAIL_RESEND_INTERVAL= -# ACCOUNT_PRIVATE_TAGS_LIMIT=2000 -# ACCOUNT_WATCHLIST_ADDRESSES_LIMIT=15 ACCOUNT_CLOAK_KEY= ACCOUNT_ENABLED=false ACCOUNT_REDIS_URL=redis://redis-db:6379 EIP_1559_ELASTICITY_MULTIPLIER=2 -# MIXPANEL_TOKEN= -# MIXPANEL_URL= -# AMPLITUDE_API_KEY= -# AMPLITUDE_URL= -# IPFS_GATEWAY_URL= -# ADDRESSES_TABS_COUNTERS_TTL=10m -# DENORMALIZATION_MIGRATION_BATCH_SIZE= -# DENORMALIZATION_MIGRATION_CONCURRENCY= -# TOKEN_TRANSFER_TOKEN_TYPE_MIGRATION_BATCH_SIZE= -# TOKEN_TRANSFER_TOKEN_TYPE_MIGRATION_CONCURRENCY= -# SANITIZE_INCORRECT_NFT_BATCH_SIZE= -# SANITIZE_INCORRECT_NFT_CONCURRENCY= SOURCIFY_INTEGRATION_ENABLED=false SOURCIFY_SERVER_URL= SOURCIFY_REPO_URL= SHOW_TENDERLY_LINK=false TENDERLY_CHAIN_PATH= -# SOLIDITYSCAN_CHAIN_ID= -# SOLIDITYSCAN_API_TOKEN= -# NOVES_FI_BASE_API_URL= -# NOVES_FI_CHAIN_NAME= -# NOVES_FI_API_TOKEN= -# ZERION_BASE_API_URL= -# ZERION_API_TOKEN= -# BRIDGED_TOKENS_ENABLED= -# BRIDGED_TOKENS_ETH_OMNI_BRIDGE_MEDIATOR= -# BRIDGED_TOKENS_BSC_OMNI_BRIDGE_MEDIATOR= -# BRIDGED_TOKENS_POA_OMNI_BRIDGE_MEDIATOR= -# BRIDGED_TOKENS_AMB_BRIDGE_MEDIATORS -# BRIDGED_TOKENS_FOREIGN_JSON_RPC -# MUD_INDEXER_ENABLED= -# MUD_DATABASE_URL= -# MUD_POOL_SIZE=50 -# WETH_TOKEN_TRANSFERS_FILTERING_ENABLED=false -# WHITELISTED_WETH_CONTRACTS= -# SANITIZE_INCORRECT_WETH_BATCH_SIZE=100 -# SANITIZE_INCORRECT_WETH_CONCURRENCY=1 -# METRICS_DISABLE_PUBLIC= \ No newline at end of file diff --git a/docker-compose/envs/common-frontend.env b/docker-compose/envs/common-frontend.env index a3dcded763..46d7b60f12 100644 --- a/docker-compose/envs/common-frontend.env +++ b/docker-compose/envs/common-frontend.env @@ -1,17 +1,41 @@ -NEXT_PUBLIC_API_HOST=localhost -NEXT_PUBLIC_API_PROTOCOL=http -NEXT_PUBLIC_STATS_API_HOST=http://localhost:8080 -NEXT_PUBLIC_NETWORK_NAME=Awesome chain -NEXT_PUBLIC_NETWORK_SHORT_NAME=Awesome chain -NEXT_PUBLIC_NETWORK_ID=5 -NEXT_PUBLIC_NETWORK_CURRENCY_NAME=Ether -NEXT_PUBLIC_NETWORK_CURRENCY_SYMBOL=ETH -NEXT_PUBLIC_NETWORK_CURRENCY_DECIMALS=18 +FAVICON_MASTER_URL=https://raw.githubusercontent.com/Nexis-Network/nexscan-data/main/logos/favicon.png +NEXT_PUBLIC_AD_BANNER_PROVIDER=none +NEXT_PUBLIC_AD_TEXT_PROVIDER=none NEXT_PUBLIC_API_BASE_PATH=/ -NEXT_PUBLIC_APP_HOST=localhost +# NEXT_PUBLIC_API_HOST=zkevm-testnet.nexscan.io +NEXT_PUBLIC_API_HOST=127.0.0.1 +NEXT_PUBLIC_API_PORT=80 +NEXT_PUBLIC_API_PROTOCOL=http +NEXT_PUBLIC_API_SPEC_URL=https://raw.githubusercontent.com/blockscout/blockscout-api-v2-swagger/main/swagger.yaml +NEXT_PUBLIC_API_WEBSOCKET_PROTOCOL=ws +# NEXT_PUBLIC_APP_HOST=zkevm-testnet.nexscan.io +NEXT_PUBLIC_APP_HOST=127.0.0.1 +NEXT_PUBLIC_APP_PORT=80 NEXT_PUBLIC_APP_PROTOCOL=http +NEXT_PUBLIC_FEATURED_NETWORKS=https://raw.githubusercontent.com/Nexis-Network/nexscan-data/main/links/testnet.json +NEXT_PUBLIC_FOOTER_LINKS=https://raw.githubusercontent.com/Nexis-Network/nexscan-data/main/links/footer.json +# NEXT_PUBLIC_HOMEPAGE_CHARTS=['daily_txs','coin_price','market_cap'] NEXT_PUBLIC_HOMEPAGE_CHARTS=['daily_txs'] -NEXT_PUBLIC_VISUALIZE_API_HOST=http://localhost:8081 +NEXT_PUBLIC_HOMEPAGE_PLATE_BACKGROUND="radial-gradient(103.03% 103.03% at 0% 0%, rgba(183, 148, 244, 0.8) 0%, rgba(0, 163, 196, 0.8) 100%), var(--chakra-colors-blue-400)" +NEXT_PUBLIC_HOMEPAGE_PLATE_TEXT_COLOR="rgb(255, 255, 255)" +NEXT_PUBLIC_HOMEPAGE_SHOW_AVG_BLOCK_TIME=false NEXT_PUBLIC_IS_TESTNET=true -NEXT_PUBLIC_API_WEBSOCKET_PROTOCOL=ws -NEXT_PUBLIC_API_SPEC_URL=https://raw.githubusercontent.com/blockscout/blockscout-api-v2-swagger/main/swagger.yaml \ No newline at end of file +NEXT_PUBLIC_NETWORK_CURRENCY_DECIMALS=18 +NEXT_PUBLIC_NETWORK_CURRENCY_NAME=Nexis +NEXT_PUBLIC_NETWORK_CURRENCY_SYMBOL=NZT +NEXT_PUBLIC_NETWORK_ICON=https://raw.githubusercontent.com/Nexis-Network/nexscan-data/main/logos/favicon.png +NEXT_PUBLIC_NETWORK_ICON_DARK=https://raw.githubusercontent.com/Nexis-Network/nexscan-data/main/logos/favicon.png +NEXT_PUBLIC_NETWORK_ID=1001 +NEXT_PUBLIC_NETWORK_LOGO=https://raw.githubusercontent.com/Nexis-Network/nexscan-data/main/logos/logo-dark-full.svg +NEXT_PUBLIC_NETWORK_LOGO_DARK=https://raw.githubusercontent.com/Nexis-Network/nexscan-data/main/logos/logo-light-full.svg +NEXT_PUBLIC_NETWORK_NAME=Nexis Network +NEXT_PUBLIC_NETWORK_RPC_URL=https://zkevm-testnet.nexis.network +NEXT_PUBLIC_NETWORK_SHORT_NAME=NZT +NEXT_PUBLIC_NETWORK_VERIFICATION_TYPE=validation +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://127.0.0.1:8080 +NEXT_PUBLIC_VISUALIZE_API_HOST=http://127.0.0.1:8081 +NEXT_PUBLIC_WEB3_WALLETS=['metamask','coinbase'] diff --git a/docker-compose/envs/common-user-ops-indexer.env b/docker-compose/envs/common-user-ops-indexer.env index 3345cba483..f3608fb364 100644 --- a/docker-compose/envs/common-user-ops-indexer.env +++ b/docker-compose/envs/common-user-ops-indexer.env @@ -10,8 +10,7 @@ USER_OPS_INDEXER__SERVER__GRPC__ADDR=0.0.0.0:8051 USER_OPS_INDEXER__API__MAX_PAGE_SIZE=100 -## (required) no default value available -USER_OPS_INDEXER__INDEXER__RPC_URL="" +USER_OPS_INDEXER__INDEXER__RPC_URL=https://zkevm-testnet.nexis.network USER_OPS_INDEXER__INDEXER__CONCURRENCY=20 USER_OPS_INDEXER__INDEXER__ENTRYPOINTS__V06=true USER_OPS_INDEXER__INDEXER__ENTRYPOINTS__V07=true @@ -25,17 +24,8 @@ USER_OPS_INDEXER__INDEXER__PAST_DB_LOGS_INDEXER__ENABLED=true USER_OPS_INDEXER__INDEXER__PAST_DB_LOGS_INDEXER__START_BLOCK=-100000 USER_OPS_INDEXER__INDEXER__PAST_DB_LOGS_INDEXER__END_BLOCK=0 -## (required) no default value available -USER_OPS_INDEXER__DATABASE__CONNECT__URL="" -# OR -#USER_OPS_INDEXER__DATABASE__CONNECT__KV__HOST= -#USER_OPS_INDEXER__DATABASE__CONNECT__KV__PORT= -#USER_OPS_INDEXER__DATABASE__CONNECT__KV__USER= -#USER_OPS_INDEXER__DATABASE__CONNECT__KV__PASSWORD= -#USER_OPS_INDEXER__DATABASE__CONNECT__KV__DBNAME= - -USER_OPS_INDEXER__DATABASE__CREATE_DATABASE=false -USER_OPS_INDEXER__DATABASE__RUN_MIGRATIONS=false +USER_OPS_INDEXER__DATABASE__CREATE_DATABASE=true +USER_OPS_INDEXER__DATABASE__RUN_MIGRATIONS=true USER_OPS_INDEXER__METRICS__ENABLED=true USER_OPS_INDEXER__METRICS__ADDR=0.0.0.0:6060 diff --git a/docker-compose/envs/sensitive-blockscout-example-env b/docker-compose/envs/sensitive-blockscout-example-env new file mode 100644 index 0000000000..9a18744c0e --- /dev/null +++ b/docker-compose/envs/sensitive-blockscout-example-env @@ -0,0 +1,2 @@ +DATABASE_URL= +SECRET_KEY_BASE= diff --git a/docker-compose/envs/sensitive-frontend-example-env b/docker-compose/envs/sensitive-frontend-example-env new file mode 100644 index 0000000000..eff54228e9 --- /dev/null +++ b/docker-compose/envs/sensitive-frontend-example-env @@ -0,0 +1,2 @@ +FAVICON_GENERATOR_API_KEY= +NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID= diff --git a/docker-compose/envs/sensitive-user-ops-indexer-example-env b/docker-compose/envs/sensitive-user-ops-indexer-example-env new file mode 100644 index 0000000000..b1db0cd2fa --- /dev/null +++ b/docker-compose/envs/sensitive-user-ops-indexer-example-env @@ -0,0 +1 @@ +USER_OPS_INDEXER__DATABASE__CONNECT__URL= diff --git a/docker-compose/proxy/default.conf.template b/docker-compose/proxy/default.conf.template index dbd5180d10..1d7ffe04e4 100644 --- a/docker-compose/proxy/default.conf.template +++ b/docker-compose/proxy/default.conf.template @@ -6,7 +6,7 @@ map $http_upgrade $connection_upgrade { server { listen 80; - server_name localhost; + server_name zkevm-testnet.nexscan.io; proxy_http_version 1.1; location ~ ^/(api|socket|sitemap.xml|auth/auth0|auth/auth0/callback|auth/logout) { @@ -34,11 +34,11 @@ server { } server { listen 8080; - server_name localhost; + server_name zkevm-testnet.nexscan.io; 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://zkevm-testnet.nexscan.io:8080' always; add_header 'Access-Control-Allow-Credentials' 'true' always; add_header 'Access-Control-Allow-Methods' 'PUT, GET, POST, OPTIONS, DELETE, PATCH' always; @@ -56,11 +56,11 @@ server { } server { listen 8081; - server_name localhost; + server_name zkevm-testnet.nexscan.io; 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://zkevm-testnet.nexscan.io:8081' always; add_header 'Access-Control-Allow-Credentials' 'true' always; add_header 'Access-Control-Allow-Methods' 'PUT, GET, POST, OPTIONS, DELETE, PATCH' always; add_header 'Access-Control-Allow-Headers' 'DNT,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization,x-csrf-token' always; @@ -80,7 +80,7 @@ server { proxy_set_header Connection $connection_upgrade; proxy_cache_bypass $http_upgrade; if ($request_method = 'OPTIONS') { - add_header 'Access-Control-Allow-Origin' 'http://localhost' always; + add_header 'Access-Control-Allow-Origin' 'http://zkevm-testnet.nexscan.io:8081' always; add_header 'Access-Control-Allow-Credentials' 'true' always; add_header 'Access-Control-Allow-Methods' 'PUT, GET, POST, OPTIONS, DELETE, PATCH' always; add_header 'Access-Control-Allow-Headers' 'DNT,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization,x-csrf-token' always; @@ -90,4 +90,4 @@ server { return 204; } } -} \ No newline at end of file +} diff --git a/docker-compose/proxy/microservices.conf.template b/docker-compose/proxy/microservices.conf.template index 708812f571..79790d2efe 100644 --- a/docker-compose/proxy/microservices.conf.template +++ b/docker-compose/proxy/microservices.conf.template @@ -6,11 +6,11 @@ map $http_upgrade $connection_upgrade { server { listen 8080; - server_name localhost; + server_name zkevm-testnet.nexscan.io; 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:3000' always; + add_header 'Access-Control-Allow-Origin' 'http://zkevm-testnet.nexscan.io:8080' always; add_header 'Access-Control-Allow-Credentials' 'true' always; add_header 'Access-Control-Allow-Methods' 'PUT, GET, POST, OPTIONS, DELETE, PATCH' always; @@ -28,11 +28,11 @@ server { } server { listen 8081; - server_name localhost; + server_name zkevm-testnet.nexscan.io 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:3000' always; + add_header 'Access-Control-Allow-Origin' 'http://zkevm-testnet.nexscan.io:8081' always; add_header 'Access-Control-Allow-Credentials' 'true' always; add_header 'Access-Control-Allow-Methods' 'PUT, GET, POST, OPTIONS, DELETE, PATCH' always; add_header 'Access-Control-Allow-Headers' 'DNT,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization,x-csrf-token' always; @@ -52,7 +52,7 @@ server { proxy_set_header Connection $connection_upgrade; proxy_cache_bypass $http_upgrade; if ($request_method = 'OPTIONS') { - add_header 'Access-Control-Allow-Origin' 'http://localhost:3000' always; + add_header 'Access-Control-Allow-Origin' 'http://zkevm-testnet.nexscan.io:8081' always; add_header 'Access-Control-Allow-Credentials' 'true' always; add_header 'Access-Control-Allow-Methods' 'PUT, GET, POST, OPTIONS, DELETE, PATCH' always; add_header 'Access-Control-Allow-Headers' 'DNT,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization,x-csrf-token' always; @@ -62,4 +62,4 @@ server { return 204; } } -} \ No newline at end of file +} diff --git a/docker-compose/services/backend.yml b/docker-compose/services/backend.yml index cf8a0871d3..ee1c5b1b24 100644 --- a/docker-compose/services/backend.yml +++ b/docker-compose/services/backend.yml @@ -12,5 +12,6 @@ services: - 'host.docker.internal:host-gateway' env_file: - ../envs/common-blockscout.env + - ../envs/sensitive-blockscout.env volumes: - - ./logs/:/app/logs/ \ No newline at end of file + - ./logs/:/app/logs/ diff --git a/docker-compose/services/frontend.yml b/docker-compose/services/frontend.yml index 2dba9b2856..dbbe724215 100644 --- a/docker-compose/services/frontend.yml +++ b/docker-compose/services/frontend.yml @@ -9,3 +9,4 @@ services: container_name: 'frontend' env_file: - ../envs/common-frontend.env + - ../envs/sensitive-frontend.env diff --git a/docker-compose/services/user-ops-indexer.yml b/docker-compose/services/user-ops-indexer.yml index 352083b9a6..7eb4eb733f 100644 --- a/docker-compose/services/user-ops-indexer.yml +++ b/docker-compose/services/user-ops-indexer.yml @@ -11,7 +11,4 @@ services: - 'host.docker.internal:host-gateway' env_file: - ../envs/common-user-ops-indexer.env - environment: - - USER_OPS_INDEXER__INDEXER__RPC_URL=${USER_OPS_INDEXER__INDEXER__RPC_URL:-ws://host.docker.internal:8545/} - - USER_OPS_INDEXER__DATABASE__CONNECT__URL=${USER_OPS_INDEXER__DATABASE__CONNECT__URL:-postgresql://blockscout:ceWb1MeLBEeOIfk65gU8EjF8@db:5432/blockscout} - - USER_OPS_INDEXER__DATABASE__RUN_MIGRATIONS=true + - ../envs/sensitive-user-ops-indexer.env