Browse Source

Start adding connection strings for VS launch profile

davidfowl/common-services
Reuben Bond 1 year ago
parent
commit
f5218e8087
10 changed files with 38 additions and 4 deletions
  1. +3
    -1
      src/Services/Catalog/Catalog.API/appsettings.Development.json
  2. +8
    -0
      src/Services/Identity/Identity.API/Identity.API.csproj
  3. +1
    -1
      src/Services/Identity/Identity.API/SeedData.cs
  4. +5
    -0
      src/Services/Identity/Identity.API/appsettings.Development.json
  5. +9
    -0
      src/Services/Ordering/Ordering.API/Ordering.API.csproj
  6. +5
    -0
      src/Services/Ordering/Ordering.API/appsettings.Development.json
  7. +3
    -0
      src/Services/Ordering/Ordering.BackgroundTasks/appsettings.Development.json
  8. +1
    -1
      src/Web/WebSPA/web.config
  9. +1
    -1
      src/Web/WebhookClient/Properties/launchSettings.json
  10. +2
    -0
      src/Web/WebhookClient/appsettings.json

+ 3
- 1
src/Services/Catalog/Catalog.API/appsettings.Development.json View File

@ -1,4 +1,6 @@
{
"ConnectionString": "Server=tcp:127.0.0.1,5433;Initial Catalog=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word",
"ConnectionStrings": {
"CatalogDB": "Server=tcp:127.0.0.1,5433;Initial Catalog=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word;Encrypt=false"
},
"PicBaseUrl": "http://localhost:5222/api/v1/catalog/items/[0]/pic/"
}

+ 8
- 0
src/Services/Identity/Identity.API/Identity.API.csproj View File

@ -49,6 +49,14 @@
<ItemGroup>
<ProjectReference Include="..\..\Services.Common\Services.Common.csproj" />
</ItemGroup>
<ItemGroup>
<Content Update="appsettings.Development.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
</Content>
</ItemGroup>
<ProjectExtensions>
<VisualStudio>
<UserProperties appsettings_1json__JsonSchema="" />


+ 1
- 1
src/Services/Identity/Identity.API/SeedData.cs View File

@ -2,7 +2,7 @@
public class SeedData
{
public static async Task EnsureSeedData(IServiceScope scope, IConfiguration configuration, Microsoft.Extensions.Logging.ILogger logger)
public static async Task EnsureSeedData(IServiceScope scope, IConfiguration configuration, ILogger logger)
{
var retryPolicy = CreateRetryPolicy(configuration, logger);
var context = scope.ServiceProvider.GetRequiredService<ApplicationDbContext>();


+ 5
- 0
src/Services/Identity/Identity.API/appsettings.Development.json View File

@ -0,0 +1,5 @@
{
"ConnectionStrings": {
"IdentityDB": "Server=tcp:127.0.0.1,5433;Initial Catalog=Microsoft.eShopOnContainers.Services.IdentityDb;User Id=sa;Password=Pass@word;Encrypt=false"
}
}

+ 9
- 0
src/Services/Ordering/Ordering.API/Ordering.API.csproj View File

@ -44,4 +44,13 @@
</None>
</ItemGroup>
<ItemGroup>
<Content Update="appsettings.Development.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
</Content>
</ItemGroup>
</Project>

+ 5
- 0
src/Services/Ordering/Ordering.API/appsettings.Development.json View File

@ -0,0 +1,5 @@
{
"ConnectionStrings": {
"OrderingDB": "Server=tcp:127.0.0.1,5433;Initial Catalog=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word;Encrypt=false"
}
}

+ 3
- 0
src/Services/Ordering/Ordering.BackgroundTasks/appsettings.Development.json View File

@ -5,5 +5,8 @@
"System": "Information",
"Microsoft": "Information"
}
},
"ConnectionStrings": {
"OrderingDB": "Server=tcp:127.0.0.1,5433;Initial Catalog=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word;Encrypt=false"
}
}

+ 1
- 1
src/Web/WebSPA/web.config View File

@ -7,7 +7,7 @@
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false">
<aspNetCore processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false" hostingModel="InProcess">
<environmentVariables />
</aspNetCore>
</system.webServer>

+ 1
- 1
src/Web/WebhookClient/Properties/launchSettings.json View File

@ -21,7 +21,7 @@
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "https://localhost:5001;http://localhost:5000"
"applicationUrl": "http://localhost:5228"
},
"Docker": {
"commandName": "Docker",


+ 2
- 0
src/Web/WebhookClient/appsettings.json View File

@ -4,5 +4,7 @@
"Default": "Information"
}
},
"IdentityUrl": "http://localhost:5223",
"CallBackUrl": "http://localhost:5228/",
"AllowedHosts": "*"
}

Loading…
Cancel
Save