This commit is contained in:
Nikita Gopienko 2019-08-26 10:12:14 +03:00
commit 55a8b37b3e
8 changed files with 43 additions and 6 deletions

View File

@ -0,0 +1,27 @@
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:56421/",
"sslPort": 0
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"ASC.Notify.Textile": {
"commandName": "Project",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "http://localhost:56422/"
}
}
}

View File

@ -30,7 +30,8 @@ namespace ASC.Notify
.AddJsonFile("autofac.json")
.AddJsonFile("storage.json")
.AddJsonFile("notify.json")
.AddJsonFile("kafka.json");
.AddJsonFile("kafka.json")
.AddJsonFile($"kafka.{hostContext.HostingEnvironment.EnvironmentName}.json", true);
})
.ConfigureServices((hostContext, services) =>
{

View File

@ -35,7 +35,8 @@ namespace ASC.Studio.Notify
.AddJsonFile("autofac.products.json")
.AddJsonFile("storage.json")
.AddJsonFile("notify.json")
.AddJsonFile("kafka.json");
.AddJsonFile("kafka.json")
.AddJsonFile($"kafka.{hostContext.HostingEnvironment.EnvironmentName}.json", true);
})
.ConfigureServices((hostContext, services) =>
{

View File

@ -1,5 +1,5 @@
{
"kafka": {
"BootstrapServers": "localhost:9092"
"BootstrapServers": ""
}
}

5
config/kafka.test.json Normal file
View File

@ -0,0 +1,5 @@
{
"kafka": {
"BootstrapServers": "localhost:9092"
}
}

View File

@ -34,7 +34,8 @@ namespace ASC.People
.AddJsonFile("autofac.json")
.AddJsonFile("autofac.products.json")
.AddJsonFile("storage.json")
.AddJsonFile("kafka.json");
.AddJsonFile("kafka.json")
.AddJsonFile($"kafka.{hostingContext.HostingEnvironment.EnvironmentName}.json", true);
});
}
}

View File

@ -34,7 +34,8 @@ namespace ASC.Web.Api
.AddJsonFile("autofac.json")
.AddJsonFile("autofac.products.json")
.AddJsonFile("storage.json")
.AddJsonFile("kafka.json");
.AddJsonFile("kafka.json")
.AddJsonFile($"kafka.{hostingContext.HostingEnvironment.EnvironmentName}.json", true);
});
}
}

View File

@ -32,7 +32,8 @@ namespace ASC.Web.Studio
.AddJsonFile($"appsettings.{hostingContext.HostingEnvironment.EnvironmentName}.json", true)
.AddJsonFile("autofac.json")
.AddJsonFile("storage.json")
.AddJsonFile("kafka.json");
.AddJsonFile("kafka.json")
.AddJsonFile($"kafka.{hostingContext.HostingEnvironment.EnvironmentName}.json", true);
});
}
}