Moved several appsettings defaults to user-secrets

This commit is contained in:
2021-10-14 00:07:00 -04:00
parent c8d45a01c9
commit 9a59f46f90
9 changed files with 22 additions and 26 deletions

View File

@@ -3,6 +3,6 @@ namespace WebAPI.Data.Models
public class User : BaseEntity
{
public int? PterodactylUserId { get; set; }
public int? ExternalAuthIdentifier { get; set; }
public string ExternalAuthIdentifier { get; set; }
}
}

View File

@@ -32,7 +32,7 @@ namespace WebAPI.Data
{
return false;
}
return false;
return true;
}
}

View File

@@ -18,6 +18,9 @@ namespace WebAPI
public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureWebHostDefaults(webBuilder => { webBuilder.UseStartup<Startup>(); });
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup<Startup>();
});
}
}

View File

@@ -22,7 +22,7 @@
"dotnetRunMessages": "true",
"launchBrowser": true,
"launchUrl": "swagger",
"applicationUrl": "https://localhost:5001;http://localhost:5000",
"applicationUrl": "https://localhost:44319;http://localhost:36546",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}

View File

@@ -1,8 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
<UserSecretsId>70ad8aec-0a1b-4ec9-bd5c-3d11ff1fcd93</UserSecretsId>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="5.0.11" />

View File

@@ -12,5 +12,5 @@
"AllowedHosts": "*",
"PterodactylAPIKey": "REPLACE_ME",
"PterodactylPanelURL": "https://panel.orfl.xyz",
"OIDCUserInfoEndpoint": "https://authentik.mattstop.com/application/o/userinfo"
"OIDCUserInfoEndpoint": "https://authentik.mattstop.com/application/o/userinfo/"
}