Added configuration support for toml and ini
This commit is contained in:
parent
3cdb9c3cc8
commit
0a85bcc7cf
|
@ -3,6 +3,7 @@
|
||||||
using Microsoft.AspNetCore.Identity;
|
using Microsoft.AspNetCore.Identity;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Microsoft.Extensions.Options;
|
using Microsoft.Extensions.Options;
|
||||||
|
using Tomlyn.Extensions.Configuration;
|
||||||
using Wave.Components;
|
using Wave.Components;
|
||||||
using Wave.Components.Account;
|
using Wave.Components.Account;
|
||||||
using Wave.Data;
|
using Wave.Data;
|
||||||
|
@ -12,7 +13,9 @@
|
||||||
builder.Configuration
|
builder.Configuration
|
||||||
.AddEnvironmentVariables("WAVE_")
|
.AddEnvironmentVariables("WAVE_")
|
||||||
.AddJsonFile("/configuration/config.json", true, false)
|
.AddJsonFile("/configuration/config.json", true, false)
|
||||||
.AddYamlFile("/configuration/config.yml", true, false);
|
.AddYamlFile("/configuration/config.yml", true, false)
|
||||||
|
.AddTomlFile("/configuration/config.toml", true, false)
|
||||||
|
.AddIniFile( "/configuration/config.ini", true, false);
|
||||||
|
|
||||||
builder.Services.AddRazorComponents().AddInteractiveServerComponents();
|
builder.Services.AddRazorComponents().AddInteractiveServerComponents();
|
||||||
builder.Services.AddControllers();
|
builder.Services.AddControllers();
|
||||||
|
|
|
@ -24,10 +24,10 @@
|
||||||
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.19.6" />
|
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.19.6" />
|
||||||
<PackageReference Include="NetEscapades.Configuration.Yaml" Version="3.1.0" />
|
<PackageReference Include="NetEscapades.Configuration.Yaml" Version="3.1.0" />
|
||||||
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="8.0.0" />
|
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="8.0.0" />
|
||||||
|
<PackageReference Include="Tomlyn.Extensions.Configuration" Version="1.0.5" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Folder Include="Services\" />
|
|
||||||
<Folder Include="wwwroot\img\" />
|
<Folder Include="wwwroot\img\" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue