more references.
This commit is contained in:
parent
5b6d74d8ee
commit
cede04a33e
179 changed files with 56679 additions and 19289 deletions
16
Startup.cs
16
Startup.cs
|
|
@ -34,13 +34,22 @@ namespace nuget_host
|
|||
|
||||
// if you are using API resources, you can specify the name here
|
||||
options.Audience = "packages";
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
services.AddMvc();
|
||||
|
||||
services.AddDataProtection();
|
||||
|
||||
services.AddIdentityServer()
|
||||
.AddInMemoryClients(Config.Clients)
|
||||
.AddInMemoryIdentityResources(Config.IdentityResources)
|
||||
.AddInMemoryApiResources(Config.ApiResources)
|
||||
.AddDeveloperSigningCredential()
|
||||
.AddTestUsers(Config.TestUsers);
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
|
||||
|
|
@ -48,13 +57,12 @@ namespace nuget_host
|
|||
{
|
||||
if (env.IsDevelopment())
|
||||
{
|
||||
app.UseDeveloperExceptionPage();
|
||||
app.UseDeveloperExceptionPage();
|
||||
}
|
||||
else
|
||||
{
|
||||
app.UseExceptionHandler("/Home/Error");
|
||||
}
|
||||
|
||||
ExternalUrl = Configuration["NuGet:ExternalUrl"];
|
||||
SourceDir = Configuration["NuGet:SourceDir"];
|
||||
RootApiKeySecret = Configuration["RootApiKeySecret"];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue