version: v1
host: 192.168.1.101
port: 2448

tls:
  enabled: true
  server:
    certificate: "/path/127.0.0.1.crt"
    key: "/path/127.0.0.1.p8.key"
  client:
    require: false
    ca: "/path/ca.dshackle.test.crt"

cache:
  redis:
    enabled: true
    host: redis-master

health:
  port: 8083
  blockchains:
    - chain: ethereum
      min-available: 1

proxy:
  port: 8082
  tls:
    enabled: true
    server:
      certificate: "/path/second/127.0.0.1.crt"
      key: "/path/second/127.0.0.1.p8.key"
    client:
      require: false
      ca: "/path/second/ca.dshackle.test.crt"
  routes:
    - id: eth
      blockchain: ethereum
    - id: etc
      blockchain: ethereum_classic
    - id: kovan
      blockchain: kovan
    - id: goerli
      blockchain: goerli
    - id: rinkeby
      blockchain: rinkeby

cluster:
  defaults:
    - chains:
        - ethereum
      options:
        min-peers: 3
  include:
    - "upstreams-extra.yaml"
  upstreams:
    - id: local
      chain: ethereum
      connection:
        ethereum:
          rpc:
            url: "http://localhost:8545"
          ws:
            url: "ws://localhost:8546"
            origin: "http://localhost"
            basic-auth:
              username: 9c199ad8f281f20154fc258fe41a6814
              password: 258fe4149c199ad8f2811a68f20154fc
    - id: infura
      chain: ethereum
      connection:
        ethereum:
          rpc:
            url: "https://mainnet.infura.io/v3/fa28c968191849c1aff541ad1d8511f2"
            basic-auth:
              username: 4fc258fe41a68149c199ad8f281f2015
              password: 1a68f20154fc258fe4149c199ad8f281