Skip to content

Commit

Permalink
Merge pull request #687 from Krulknul/develop
Browse files Browse the repository at this point in the history
Fix configuration for page size in compose file and environment template
  • Loading branch information
PawelPawelec-RDX authored Mar 18, 2024
2 parents be0ef28 + 5aa2793 commit 5d7c51c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions deployment/.template.env
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ ENABLE_SWAGGER=true
# Defines a maximum value for the limit parameter for APIs that use pagination
MAX_PAGE_SIZE=30

# Defines a default page size for when the page size is not specified.
# Must be smaller than or equal to MAX_PAGE_SIZE
DEFAULT_PAGE_SIZE=30

# Whether to prevent Gateway API queries if the aggregator isn't synced up to current ledger state
PREVENT_OUTDATED_READ_REQUESTS=true
PREVENT_OUTDATED_CONSTRUCTION_REQUESTS=true
Expand Down
3 changes: 2 additions & 1 deletion deployment/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ services:
EnableSwagger: "${ENABLE_SWAGGER}"
ConnectionStrings__NetworkGatewayReadOnly: "Host=postgres_db:5432;Database=${POSTGRES_DB_NAME};Username=${POSTGRES_SUPERUSER};Password=${POSTGRES_SUPERUSER_PASSWORD}"
ConnectionStrings__NetworkGatewayReadWrite: "Host=postgres_db:5432;Database=${POSTGRES_DB_NAME};Username=${POSTGRES_SUPERUSER};Password=${POSTGRES_SUPERUSER_PASSWORD}"
GatewayApi__Endpoints_MaxPageSize: "${MAX_PAGE_SIZE}"
GatewayApi__Endpoint__MaxPageSize: "${MAX_PAGE_SIZE}"
GatewayApi__Endpoint__DefaultPageSize: "${DEFAULT_PAGE_SIZE}"
GatewayApi__AcceptableLedgerLag__PreventReadRequestsIfDbLedgerIsBehind: "${PREVENT_OUTDATED_READ_REQUESTS}"
GatewayApi__AcceptableLedgerLag__PreventConstructionRequestsIfDbLedgerIsBehind: "${PREVENT_OUTDATED_CONSTRUCTION_REQUESTS}"
GatewayApi__Network__NetworkName: "${NETWORK_NAME}"
Expand Down

0 comments on commit 5d7c51c

Please sign in to comment.