.env 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. ###########################
  2. # Common settings #
  3. ###########################
  4. # The env variables below are by default used by all services and should be
  5. # overriden in local env files (e.g. ./generated/indexer) if needed
  6. # DB config
  7. DB_NAME=query_node
  8. DB_USER=postgres
  9. DB_PASS=postgres
  10. DB_HOST=localhost
  11. DB_PORT=5432
  12. DEBUG=index-builder:*
  13. TYPEORM_LOGGING=error
  14. ###########################
  15. # Indexer options #
  16. ###########################
  17. # Substrate endpoint to source events from
  18. WS_PROVIDER_ENDPOINT_URI=ws://localhost:9944/
  19. # Block height to start indexing from.
  20. # Note, that if there are already some indexed events, this setting is ignored
  21. BLOCK_HEIGHT=0
  22. # Custom types to register for Substrate API
  23. # TYPE_REGISTER_PACKAGE_NAME=
  24. # TYPE_REGISTER_PACKAGE_VERSION=
  25. # TYPE_REGISTER_FUNCTION=
  26. # Redis cache server
  27. REDIS_URI=redis://localhost:6379/0
  28. ###########################
  29. # Processor options #
  30. ###########################
  31. # Where the mapping scripts are located, relative to ./generated/indexer
  32. TYPES_JSON=../../typedefs.json
  33. # Indexer GraphQL API endpoint to fetch indexed events
  34. INDEXER_ENDPOINT_URL=http://localhost:4100/graphql
  35. # Block height from which the processor starts. Note that if
  36. # there are already processed events in the database, this setting is ignored
  37. BLOCK_HEIGHT=0
  38. ###############################
  39. # Processor GraphQL API #
  40. ###############################
  41. GRAPHQL_SERVER_PORT=4002
  42. GRAPHQL_SERVER_HOST=localhost
  43. WARTHOG_APP_PORT=4002
  44. WARTHOG_APP_HOST=localhost