bitmaelum / bitmaelum-suite

BitMaelum software suite
https://bitmaelum.com
MIT License
61 stars 5 forks source link

resolver configuration #200

Closed jaytaph closed 3 years ago

jaytaph commented 3 years ago

The resolver is now always a chain resolver, where it can happen that no resolvers are added to the chain. This results in a valid setup, but without an resolving.

Instead, use a configuration like this:

    config:
        vault: 
            path: ....
        server:
            allow_insecure: true
            debug_http: false
        # Define the default resolver. When not specified, it will default to "remote"
        default_resolver: remote    
        resolvers:
            # This resolver will connect to the main resolver URL.
            remote:
                url: https://resolver.bitmaelum.com
            # Uses a local SQLite database as resolver. Useful for tests only
            sqlite:
                path: ~/resolver.db
            # Uses a local BoltDB database as resolver. Useful for tests only
            boltdb:
                path: ~/resolver-bolt.db
            # Chain will try and resolve through multiple resolvers in the given order.
            chain:
                - remote
                - sqlite
                - boltdb