Skip to content

Commit

Permalink
fix(docker): update docker default to not specify resolver by default
Browse files Browse the repository at this point in the history
If this url is provided, the composite arns resolver will try and use it. Since the resolver is not enabled by default we should remove this so it is not used.
  • Loading branch information
dtfiedler authored and djwhitt committed Sep 9, 2024
1 parent ab9c1c4 commit 21f23bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
7 changes: 3 additions & 4 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,9 @@ services:
- WEBHOOK_INDEX_FILTER=${WEBHOOK_INDEX_FILTER:-}
- WEBHOOK_BLOCK_FILTER=${WEBHOOK_BLOCK_FILTER:-}
- CONTIGUOUS_DATA_CACHE_CLEANUP_THRESHOLD=${CONTIGUOUS_DATA_CACHE_CLEANUP_THRESHOLD:-}
- TRUSTED_ARNS_RESOLVER_TYPE=${TRUSTED_ARNS_RESOLVER_TYPE:-gateway}
- TRUSTED_ARNS_RESOLVER_URL=${TRUSTED_ARNS_RESOLVER_URL:-http://resolver:6000}
- TRUSTED_ARNS_GATEWAY_URL=${TRUSTED_ARNS_GATEWAY_URL:-https://__NAME__.arweave.dev}
- ARNS_RESOLVER_PRIORITY_ORDER=${ARNS_RESOLVER_PRIORITY_ORDER:-resolver,on-demand,gateway}
- TRUSTED_ARNS_RESOLVER_URL=${TRUSTED_ARNS_RESOLVER_URL:-}
- TRUSTED_ARNS_GATEWAY_URL=${TRUSTED_ARNS_GATEWAY_URL:-https://__NAME__.arweave.net}
- ARNS_RESOLVER_PRIORITY_ORDER=${ARNS_RESOLVER_PRIORITY_ORDER:-on-demand,gateway}
- ARNS_CACHE_TTL_SECONDS=${ARNS_CACHE_TTL_SECONDS:-3600}
- ARNS_CACHE_MAX_KEYS=${ARNS_CACHE_MAX_KEYS:-10000}
- ENABLE_MEMPOOL_WATCHER=${ENABLE_MEMPOOL_WATCHER:-false}
Expand Down
3 changes: 1 addition & 2 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,8 @@ export const TRUSTED_ARNS_RESOLVER_TYPE = env.varOrDefault(
'gateway',
);

export const TRUSTED_ARNS_RESOLVER_URL = env.varOrDefault(
export const TRUSTED_ARNS_RESOLVER_URL = env.varOrUndefined(
'TRUSTED_ARNS_RESOLVER_URL',
TRUSTED_ARNS_GATEWAY_URL,
);

//
Expand Down

0 comments on commit 21f23bf

Please sign in to comment.