How do I use appsettings.json in ASP.NET core to provide connection settings to RavenDB for different environments? The RavenDB docs explain how to do this with app.config and web.config, but I can't find anything for appsettings.json.

Is injecting an `IOptions<RavenSettings>` into the DocumentStoreHolder the right way to go (and what would this look like), or is there a better option?

Here's the code so far:

**appsettings.json**

```
{
  "Logging": {
    "IncludeScopes": false,
    "LogLevel": {
      "Default": "Debug",
      "System": "Information",
      "Microsoft": "Information"
    }
  },
  "Raven": {
    "Url": "http://localhost:8080",
    "DefaultDatabase": "MyDatabase"
  } 
}

```

**startup.cs**

```
public void ConfigureServices(IServiceCollection services)
{
    ...
    services.AddSingleton<IConfiguration>(Configuration);
    services.Configure<RavenSettings>(Configuration.GetSection("Raven"));
}

```

**DocumentStoreHolder.cs**

```
public class DocumentStoreHolder
    {
        private static Lazy<IDocumentStore> docStore = new Lazy<IDocumentStore>(CreateStore);

        public static IDocumentStore Store
        {
            get { return docStore.Value; }
        }

        private static IDocumentStore CreateStore()
        {
            IDocumentStore store = new DocumentStore()
            {
                Url = "http://localhost:8080",
                DefaultDatabase = "MyDatabase"
            }.Initialize();

            return store;
        }
    }

```