From 990189ad959ffc2d86b5bcc13db9a6b7fafe066f Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Mon, 6 Apr 2026 17:01:27 +0300 Subject: [PATCH] ECTO_SSL_MODE env variable --- setup/deployment/frontend-migration/all-in-one-container.mdx | 2 +- setup/deployment/frontend-migration/separate-frontend.mdx | 2 +- setup/env-variables/backend-env-variables.mdx | 2 +- setup/env-variables/deprecated-env-variables.mdx | 3 ++- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/setup/deployment/frontend-migration/all-in-one-container.mdx b/setup/deployment/frontend-migration/all-in-one-container.mdx index 3831b92f..39215822 100644 --- a/setup/deployment/frontend-migration/all-in-one-container.mdx +++ b/setup/deployment/frontend-migration/all-in-one-container.mdx @@ -50,7 +50,7 @@ environment: INDEXER_DISABLE_INTERNAL_TRANSACTIONS_FETCHER: 'true' INDEXER_DISABLE_PENDING_TRANSACTIONS_FETCHER: 'true' DATABASE_URL: postgresql://postgres:@host.docker.internal:7432/blockscout?ssl=false - ECTO_USE_SSL: 'false' + ECTO_SSL_MODE: 'disable' SECRET_KEY_BASE: '56NtB48ear7+wMSf0IQuWDAAazhpb31qyc7GiyspBP2vh7t5zlCsF5QDv76chXeN' CHAIN_ID: '1337' API_V2_ENABLED: 'true' diff --git a/setup/deployment/frontend-migration/separate-frontend.mdx b/setup/deployment/frontend-migration/separate-frontend.mdx index cc16028f..41b6a249 100644 --- a/setup/deployment/frontend-migration/separate-frontend.mdx +++ b/setup/deployment/frontend-migration/separate-frontend.mdx @@ -64,7 +64,7 @@ environment: INDEXER_DISABLE_INTERNAL_TRANSACTIONS_FETCHER: 'true' INDEXER_DISABLE_PENDING_TRANSACTIONS_FETCHER: 'true' DATABASE_URL: postgresql://postgres:@host.docker.internal:7432/blockscout?ssl=false - ECTO_USE_SSL: 'false' + ECTO_SSL_MODE: 'disable' SECRET_KEY_BASE: '56NtB48ear7+wMSf0IQuWDAAazhpb31qyc7GiyspBP2vh7t5zlCsF5QDv76chXeN' CHAIN_ID: '1337' API_V2_ENABLED: 'true' diff --git a/setup/env-variables/backend-env-variables.mdx b/setup/env-variables/backend-env-variables.mdx index fbbffbbc..aee77dc7 100644 --- a/setup/env-variables/backend-env-variables.mdx +++ b/setup/env-variables/backend-env-variables.mdx @@ -157,7 +157,7 @@ Can be set in format `1d` for 1 day, `1h` for 1 hour, `1m` for 1 minute, `1s` or | `DATABASE_QUEUE_TARGET` | Management of [DB queue target](https://hexdocs.pm/db_connection/DBConnection.html#start_link/2-queue-config). Implemented in [#8991](https://github.com/blockscout/blockscout/pull/8991). | Version: v5.4.0\+
Default: `50ms`
Applications: API, Indexer | | `POOL_SIZE` | Defines the number of database connections allowed excluding read-only API endpoints requests. | Version: All
Default: `50`
Applications: API, Indexer | | `POOL_SIZE_API` | Defines the number of database connections allowed for read-only API endpoints requests. | Version: v4.1.0\+
Default: `50`
Applications: API | -| `ECTO_USE_SSL` | Production environment variable to use SSL on Ecto queries. | Version: All
Default: `TRUE`
Applications: API, Indexer | +| `ECTO_SSL_MODE` | SSL mode for Ecto DB connections. Supported values: `disable`, `allow`, `prefer`, `require`, `verify-ca`, `verify-full`. Resolution order: `ECTO_SSL_MODE` has highest priority, then `sslmode` in `DATABASE_URL`, otherwise defaults to `require`. | Version: master+
Default: `require`
Applications: API, Indexer | ## JSON RPC Node Management diff --git a/setup/env-variables/deprecated-env-variables.mdx b/setup/env-variables/deprecated-env-variables.mdx index fc2ee260..23b01d7f 100644 --- a/setup/env-variables/deprecated-env-variables.mdx +++ b/setup/env-variables/deprecated-env-variables.mdx @@ -205,4 +205,5 @@ sidebarTitle: "Overview" | Deprecated `INDEXER_TX_ACTIONS_REINDEX_LAST_BLOCK` | The last block of a block range for historical indexing or reindexing of tx actions. Implemented in [#6582](https://github.com/blockscout/blockscout/pull/6582). | (empty) | v5.1.0+ | | master | | Deprecated `INDEXER_TX_ACTIONS_REINDEX_PROTOCOLS` | Comma-separated names of protocols which should be indexed or reindexed on historical blocks defined by the range. Example: `uniswap_v3,zkbob` - only these protocols will be indexed or reindexed for the defined block range. If the value is empty string (or not defined), all supported protocols will be indexed/reindexed. This option is not applicable to `realtime` and `catchup` fetchers (it always indexes all supported protocols). Implemented in [#6582](https://github.com/blockscout/blockscout/pull/6582). | (empty) | v5.1.0+ | | master | | Deprecated `INDEXER_TX_ACTIONS_UNISWAP_V3_FACTORY_CONTRACT` | UniswapV3Factory contract address. Implemented in [#7312](https://github.com/blockscout/blockscout/pull/7312). | `0x1F98431c8aD98523631AE4a59f267346ea31F984` | v5.1.4+ | | master | -| Deprecated `INDEXER_TX_ACTIONS_UNISWAP_V3_NFT_POSITION_MANAGER_CONTRACT` | NonfungiblePositionManager contract address for Uniswap v3. Implemented in [#7312](https://github.com/blockscout/blockscout/pull/7312). | `0xC36442b4a4522E871399CD717aBDD847Ab11FE88` | v5.1.4+ | | master | \ No newline at end of file +| Deprecated `INDEXER_TX_ACTIONS_UNISWAP_V3_NFT_POSITION_MANAGER_CONTRACT` | NonfungiblePositionManager contract address for Uniswap v3. Implemented in [#7312](https://github.com/blockscout/blockscout/pull/7312). | `0xC36442b4a4522E871399CD717aBDD847Ab11FE88` | v5.1.4+ | | master | +| Deprecated `ECTO_USE_SSL` | Boolean SSL toggle for Ecto DB connections. Replaced with `ECTO_SSL_MODE`. | `TRUE` | All | | master | \ No newline at end of file