Skip to content

Commit

Permalink
Increase timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
olehmell committed Oct 25, 2023
1 parent 1708d8a commit 39c8547
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion deployment/overlays/production/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ data:
KUSAMA_NODE_URL: wss://kusama-rpc.polkadot.io
LOG_LEVEL: info
MAX_RESULTS_LIMIT: "20"
OFFCHAIN_REQ_TIMEOUT_SECS: "10"
OFFCHAIN_REQ_TIMEOUT_SECS: "60"
OFFCHAIN_SERVER_PORT: "3001"
OFFCHAIN_TELEGRAM_WS_PORT: "3020"
OFFCHAIN_WS_PORT: "3011"
Expand Down
2 changes: 1 addition & 1 deletion deployment/overlays/staging/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ data:
KUSAMA_NODE_URL: wss://kusama-rpc.polkadot.io
LOG_LEVEL: info
MAX_RESULTS_LIMIT: "20"
OFFCHAIN_REQ_TIMEOUT_SECS: "10"
OFFCHAIN_REQ_TIMEOUT_SECS: "60"
OFFCHAIN_SERVER_PORT: "3001"
OFFCHAIN_TELEGRAM_WS_PORT: "3020"
OFFCHAIN_WS_PORT: "3011"
Expand Down
2 changes: 1 addition & 1 deletion src/express-api/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ export const maxFileSizeBytes = parseInt(process.env.IPFS_MAX_FILE_SIZE_BYTES) |

export const maxFileSizeMB = maxFileSizeBytes / MB

export const reqTimeoutSecs = process.env.OFFCHAIN_REQ_TIMEOUT_SECS || 10
export const reqTimeoutSecs = process.env.OFFCHAIN_REQ_TIMEOUT_SECS || 60

export const allowedOrigins = process.env.CORS_ALLOWED_ORIGIN?.split(',').map(x => x.trim()) || ['http://localhost']

0 comments on commit 39c8547

Please sign in to comment.