1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-21 12:05:42 +01:00

Project configuration tune-up (#2994)

This commit is contained in:
Matt Bishop 2023-06-08 13:21:03 -04:00 committed by GitHub
parent cc4b6bb2fa
commit 6a9e7a1d0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
28 changed files with 95 additions and 59 deletions

View File

@ -1,4 +1,4 @@
{ {
"iisSettings": { "iisSettings": {
"windowsAuthentication": false, "windowsAuthentication": false,
"anonymousAuthentication": true, "anonymousAuthentication": true,
@ -10,7 +10,6 @@
"profiles": { "profiles": {
"IIS Express": { "IIS Express": {
"commandName": "IISExpress", "commandName": "IISExpress",
"launchBrowser": false,
"launchUrl": "http://localhost:44558", "launchUrl": "http://localhost:44558",
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
@ -18,12 +17,11 @@
}, },
"Scim": { "Scim": {
"commandName": "Project", "commandName": "Project",
"launchBrowser": false,
"launchUrl": "http://localhost:44558", "launchUrl": "http://localhost:44558",
"applicationUrl": "http://localhost:44559",
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
}, }
"applicationUrl": "http://localhost:44559"
} }
} }
} }

View File

@ -5,6 +5,7 @@
<MvcRazorCompileOnPublish>false</MvcRazorCompileOnPublish> <MvcRazorCompileOnPublish>false</MvcRazorCompileOnPublish>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(RunConfiguration)' == 'Scim' " />
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\..\..\src\Core\Core.csproj" /> <ProjectReference Include="..\..\..\src\Core\Core.csproj" />
<ProjectReference Include="..\..\..\src\SharedWeb\SharedWeb.csproj" /> <ProjectReference Include="..\..\..\src\SharedWeb\SharedWeb.csproj" />

View File

@ -1,7 +1,7 @@
{ {
"iisSettings": { "iisSettings": {
"windowsAuthentication": false, "windowsAuthentication": false,
"anonymousAuthentication": true, "anonymousAuthentication": true,
"iisExpress": { "iisExpress": {
"applicationUrl": "http://localhost:51822", "applicationUrl": "http://localhost:51822",
"sslPort": 0 "sslPort": 0
@ -10,14 +10,12 @@
"profiles": { "profiles": {
"IIS Express": { "IIS Express": {
"commandName": "IISExpress", "commandName": "IISExpress",
"launchBrowser": false,
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
} }
}, },
"Sso": { "Sso": {
"commandName": "Project", "commandName": "Project",
"launchBrowser": false,
"applicationUrl": "http://localhost:51822", "applicationUrl": "http://localhost:51822",
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
@ -25,7 +23,6 @@
}, },
"Sso-SelfHost": { "Sso-SelfHost": {
"commandName": "Project", "commandName": "Project",
"launchBrowser": false,
"applicationUrl": "http://localhost:51823", "applicationUrl": "http://localhost:51823",
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development", "ASPNETCORE_ENVIRONMENT": "Development",

View File

@ -4,6 +4,8 @@
<UserSecretsId>bitwarden-Sso</UserSecretsId> <UserSecretsId>bitwarden-Sso</UserSecretsId>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(RunConfiguration)' == 'Sso' " />
<PropertyGroup Condition=" '$(RunConfiguration)' == 'Sso-SelfHost' " />
<ItemGroup> <ItemGroup>
<PackageReference Include="Sustainsys.Saml2.AspNetCore2" Version="2.9.0" /> <PackageReference Include="Sustainsys.Saml2.AspNetCore2" Version="2.9.0" />
</ItemGroup> </ItemGroup>

View File

@ -0,0 +1,16 @@
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true
},
"profiles": {
"Bit.Scim.IntegrationTest": {
"commandName": "Project",
"launchBrowser": true,
"applicationUrl": "http://localhost:14696",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}

View File

@ -25,4 +25,11 @@
<ProjectReference Include="..\..\..\test\Common\Common.csproj" /> <ProjectReference Include="..\..\..\test\Common\Common.csproj" />
<ProjectReference Include="..\..\..\test\IntegrationTestCommon\IntegrationTestCommon.csproj" /> <ProjectReference Include="..\..\..\test\IntegrationTestCommon\IntegrationTestCommon.csproj" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<Content Update="Properties\launchSettings.json">
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<CopyToPublishDirectory>Never</CopyToPublishDirectory>
</Content>
</ItemGroup>
</Project> </Project>

View File

@ -4,6 +4,8 @@
<UserSecretsId>bitwarden-Admin</UserSecretsId> <UserSecretsId>bitwarden-Admin</UserSecretsId>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(RunConfiguration)' == 'Admin' " />
<PropertyGroup Condition=" '$(RunConfiguration)' == 'Admin-SelfHost' " />
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\..\util\MySqlMigrations\MySqlMigrations.csproj" /> <ProjectReference Include="..\..\util\MySqlMigrations\MySqlMigrations.csproj" />
<ProjectReference Include="..\..\util\PostgresMigrations\PostgresMigrations.csproj" /> <ProjectReference Include="..\..\util\PostgresMigrations\PostgresMigrations.csproj" />

View File

@ -10,27 +10,24 @@
"profiles": { "profiles": {
"IIS Express": { "IIS Express": {
"commandName": "IISExpress", "commandName": "IISExpress",
"launchBrowser": false,
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
} }
}, },
"Admin": { "Admin": {
"commandName": "Project", "commandName": "Project",
"launchBrowser": false, "applicationUrl": "http://localhost:62911/",
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
}, }
"applicationUrl": "http://localhost:62911/"
}, },
"Admin-SelfHost": { "Admin-SelfHost": {
"commandName": "Project", "commandName": "Project",
"launchBrowser": false, "applicationUrl": "http://localhost:62912/",
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development", "ASPNETCORE_ENVIRONMENT": "Development",
"developSelfHosted": "true" "developSelfHosted": "true"
}, }
"applicationUrl": "http://localhost:62912/"
} }
} }
} }

View File

@ -15,6 +15,8 @@
<NoWarn>1701;1702;1591</NoWarn> <NoWarn>1701;1702;1591</NoWarn>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(RunConfiguration)' == 'Api' " />
<PropertyGroup Condition=" '$(RunConfiguration)' == 'Api-SelfHost' " />
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\SharedWeb\SharedWeb.csproj" /> <ProjectReference Include="..\SharedWeb\SharedWeb.csproj" />
<ProjectReference Include="..\Core\Core.csproj" /> <ProjectReference Include="..\Core\Core.csproj" />

View File

@ -10,14 +10,12 @@
"profiles": { "profiles": {
"IIS Express": { "IIS Express": {
"commandName": "IISExpress", "commandName": "IISExpress",
"launchBrowser": false,
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
} }
}, },
"Api": { "Api": {
"commandName": "Project", "commandName": "Project",
"launchBrowser": false,
"applicationUrl": "http://localhost:4000", "applicationUrl": "http://localhost:4000",
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
@ -25,7 +23,6 @@
}, },
"Api-SelfHost": { "Api-SelfHost": {
"commandName": "Project", "commandName": "Project",
"launchBrowser": false,
"applicationUrl": "http://localhost:4001", "applicationUrl": "http://localhost:4001",
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development", "ASPNETCORE_ENVIRONMENT": "Development",

View File

@ -5,6 +5,7 @@
<MvcRazorCompileOnPublish>false</MvcRazorCompileOnPublish> <MvcRazorCompileOnPublish>false</MvcRazorCompileOnPublish>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(RunConfiguration)' == 'Billing' " />
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\SharedWeb\SharedWeb.csproj" /> <ProjectReference Include="..\SharedWeb\SharedWeb.csproj" />
<ProjectReference Include="..\Core\Core.csproj" /> <ProjectReference Include="..\Core\Core.csproj" />

View File

@ -1,4 +1,4 @@
{ {
"iisSettings": { "iisSettings": {
"windowsAuthentication": false, "windowsAuthentication": false,
"anonymousAuthentication": true, "anonymousAuthentication": true,
@ -10,7 +10,6 @@
"profiles": { "profiles": {
"IIS Express": { "IIS Express": {
"commandName": "IISExpress", "commandName": "IISExpress",
"launchBrowser": false,
"launchUrl": "http://localhost:44518", "launchUrl": "http://localhost:44518",
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
@ -18,12 +17,11 @@
}, },
"Billing": { "Billing": {
"commandName": "Project", "commandName": "Project",
"launchBrowser": false,
"launchUrl": "http://localhost:44518", "launchUrl": "http://localhost:44518",
"applicationUrl": "http://localhost:44519",
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
}, }
"applicationUrl": "http://localhost:44519"
} }
} }
} }

View File

@ -5,6 +5,8 @@
<MvcRazorCompileOnPublish>false</MvcRazorCompileOnPublish> <MvcRazorCompileOnPublish>false</MvcRazorCompileOnPublish>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(RunConfiguration)' == 'Events' " />
<PropertyGroup Condition=" '$(RunConfiguration)' == 'Events-SelfHost' " />
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\SharedWeb\SharedWeb.csproj" /> <ProjectReference Include="..\SharedWeb\SharedWeb.csproj" />
<ProjectReference Include="..\Core\Core.csproj" /> <ProjectReference Include="..\Core\Core.csproj" />

View File

@ -10,27 +10,24 @@
"profiles": { "profiles": {
"IIS Express": { "IIS Express": {
"commandName": "IISExpress", "commandName": "IISExpress",
"launchBrowser": false,
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
} }
}, },
"Events": { "Events": {
"commandName": "Project", "commandName": "Project",
"launchBrowser": false, "applicationUrl": "http://localhost:46273/",
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
}, }
"applicationUrl": "http://localhost:46273/"
}, },
"Events-SelfHost": { "Events-SelfHost": {
"commandName": "Project", "commandName": "Project",
"launchBrowser": false, "applicationUrl": "http://localhost:46274/",
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development", "ASPNETCORE_ENVIRONMENT": "Development",
"developSelfHosted": "true" "developSelfHosted": "true"
}, }
"applicationUrl": "http://localhost:46274/"
} }
} }
} }

View File

@ -4,6 +4,7 @@
<UserSecretsId>bitwarden-EventsProcessor</UserSecretsId> <UserSecretsId>bitwarden-EventsProcessor</UserSecretsId>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(RunConfiguration)' == 'EventsProcessor' " />
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\SharedWeb\SharedWeb.csproj" /> <ProjectReference Include="..\SharedWeb\SharedWeb.csproj" />
<ProjectReference Include="..\Core\Core.csproj" /> <ProjectReference Include="..\Core\Core.csproj" />

View File

@ -10,18 +10,16 @@
"profiles": { "profiles": {
"IIS Express": { "IIS Express": {
"commandName": "IISExpress", "commandName": "IISExpress",
"launchBrowser": false,
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
} }
}, },
"EventsProcessor": { "EventsProcessor": {
"commandName": "Project", "commandName": "Project",
"launchBrowser": false, "applicationUrl": "http://localhost:54103/",
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
}, }
"applicationUrl": "http://localhost:54103/"
} }
} }
} }

View File

@ -5,6 +5,7 @@
<MvcRazorCompileOnPublish>false</MvcRazorCompileOnPublish> <MvcRazorCompileOnPublish>false</MvcRazorCompileOnPublish>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(RunConfiguration)' == 'Icons' " />
<ItemGroup> <ItemGroup>
<PackageReference Include="AngleSharp" Version="0.16.1" /> <PackageReference Include="AngleSharp" Version="0.16.1" />
</ItemGroup> </ItemGroup>

View File

@ -10,7 +10,6 @@
"profiles": { "profiles": {
"IIS Express": { "IIS Express": {
"commandName": "IISExpress", "commandName": "IISExpress",
"launchBrowser": false,
"launchUrl": "bitwarden.com/icon.png", "launchUrl": "bitwarden.com/icon.png",
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
@ -18,12 +17,11 @@
}, },
"Icons": { "Icons": {
"commandName": "Project", "commandName": "Project",
"launchBrowser": false,
"launchUrl": "bitwarden.com/icon.png", "launchUrl": "bitwarden.com/icon.png",
"applicationUrl": "http://localhost:50024/",
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
}, }
"applicationUrl": "http://localhost:50024/"
} }
} }
} }

View File

@ -5,6 +5,8 @@
<MvcRazorCompileOnPublish>false</MvcRazorCompileOnPublish> <MvcRazorCompileOnPublish>false</MvcRazorCompileOnPublish>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(RunConfiguration)' == 'Identity' " />
<PropertyGroup Condition=" '$(RunConfiguration)' == 'Identity-SelfHost' " />
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\SharedWeb\SharedWeb.csproj" /> <ProjectReference Include="..\SharedWeb\SharedWeb.csproj" />
<ProjectReference Include="..\Core\Core.csproj" /> <ProjectReference Include="..\Core\Core.csproj" />

View File

@ -10,14 +10,12 @@
"profiles": { "profiles": {
"IIS Express": { "IIS Express": {
"commandName": "IISExpress", "commandName": "IISExpress",
"launchBrowser": false,
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
} }
}, },
"Identity": { "Identity": {
"commandName": "Project", "commandName": "Project",
"launchBrowser": false,
"applicationUrl": "http://localhost:33656", "applicationUrl": "http://localhost:33656",
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
@ -25,7 +23,6 @@
}, },
"Identity-SelfHost": { "Identity-SelfHost": {
"commandName": "Project", "commandName": "Project",
"launchBrowser": false,
"applicationUrl": "http://localhost:33657", "applicationUrl": "http://localhost:33657",
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development", "ASPNETCORE_ENVIRONMENT": "Development",

View File

@ -4,6 +4,8 @@
<UserSecretsId>bitwarden-Notifications</UserSecretsId> <UserSecretsId>bitwarden-Notifications</UserSecretsId>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(RunConfiguration)' == 'Notifications' " />
<PropertyGroup Condition=" '$(RunConfiguration)' == 'Notifications-SelfHost' " />
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.SignalR.Protocols.MessagePack" Version="6.0.4" /> <PackageReference Include="Microsoft.AspNetCore.SignalR.Protocols.MessagePack" Version="6.0.4" />
<PackageReference Include="Microsoft.AspNetCore.SignalR.StackExchangeRedis" Version="6.0.4" /> <PackageReference Include="Microsoft.AspNetCore.SignalR.StackExchangeRedis" Version="6.0.4" />

View File

@ -1,7 +1,7 @@
{ {
"iisSettings": { "iisSettings": {
"windowsAuthentication": false, "windowsAuthentication": false,
"anonymousAuthentication": true, "anonymousAuthentication": true,
"iisExpress": { "iisExpress": {
"applicationUrl": "http://localhost:61840", "applicationUrl": "http://localhost:61840",
"sslPort": 0 "sslPort": 0
@ -10,14 +10,12 @@
"profiles": { "profiles": {
"IIS Express": { "IIS Express": {
"commandName": "IISExpress", "commandName": "IISExpress",
"launchBrowser": false,
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
} }
}, },
"Notifications": { "Notifications": {
"commandName": "Project", "commandName": "Project",
"launchBrowser": false,
"applicationUrl": "http://localhost:61840", "applicationUrl": "http://localhost:61840",
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
@ -25,7 +23,6 @@
}, },
"Notifications-SelfHost": { "Notifications-SelfHost": {
"commandName": "Project", "commandName": "Project",
"launchBrowser": false,
"applicationUrl": "http://localhost:61841", "applicationUrl": "http://localhost:61841",
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development", "ASPNETCORE_ENVIRONMENT": "Development",

View File

@ -26,4 +26,11 @@
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content> </Content>
</ItemGroup> </ItemGroup>
<ItemGroup>
<Content Update="Properties\launchSettings.json">
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<CopyToPublishDirectory>Never</CopyToPublishDirectory>
</Content>
</ItemGroup>
</Project> </Project>

View File

@ -0,0 +1,16 @@
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true
},
"profiles": {
"Bit.Api.IntegrationTest": {
"commandName": "Project",
"launchBrowser": true,
"applicationUrl": "http://localhost:33506",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}

View File

@ -4,6 +4,7 @@
<IsPackable>false</IsPackable> <IsPackable>false</IsPackable>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(RunConfiguration)' == 'Identity.IntegrationTest' " />
<ItemGroup> <ItemGroup>
<PackageReference Include="coverlet.collector" Version="$(CoverletCollectorVersion)"> <PackageReference Include="coverlet.collector" Version="$(CoverletCollectorVersion)">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

View File

@ -2,11 +2,10 @@
"profiles": { "profiles": {
"Identity.IntegrationTest": { "Identity.IntegrationTest": {
"commandName": "Project", "commandName": "Project",
"launchBrowser": false, "applicationUrl": "https://localhost:55088;http://localhost:55089",
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
}, }
"applicationUrl": "https://localhost:55088;http://localhost:55089"
} }
} }
} }

View File

@ -2,11 +2,10 @@
"profiles": { "profiles": {
"Server": { "Server": {
"commandName": "Project", "commandName": "Project",
"launchBrowser": false, "applicationUrl": "http://localhost:53910/",
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
}, }
"applicationUrl": "http://localhost:53910/"
} }
} }
} }

View File

@ -4,4 +4,5 @@
<MvcRazorCompileOnPublish>false</MvcRazorCompileOnPublish> <MvcRazorCompileOnPublish>false</MvcRazorCompileOnPublish>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(RunConfiguration)' == 'Server' " />
</Project> </Project>