Skip to content

Commit

Permalink
Fix broken ASPNETCORE_URLS value
Browse files Browse the repository at this point in the history
  • Loading branch information
benvillalobos committed Oct 12, 2022
1 parent e1c462c commit 3262d48
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packaging/build/Microsoft.NET.Build.Containers.targets
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@
<ItemGroup Label="ASP.NET port forwarding" Condition="'$(_IsAspNet)' == 'true'">
<ContainerPort Include="80" Type="tcp" Condition="@(ContainerPort->WithMetadataValue('Identity', '80')->AnyHaveMetadataValue('Type', 'tcp')) == ''" />

<!-- Environment variables are 'last one wins' if duplicates exist. -->
<ContainerEnvironmentVariable Include="ASPNETCORE_URLS" Value="http://localhost:5000;https://localhost:5001"
<ContainerEnvironmentVariable Include="ASPNETCORE_URLS" Value="http://+:80"
Condition="@(ContainerEnvironmentVariable->WithMetadataValue('Identity', 'ASPNETCORE_URLS')) == ''"/>
</ItemGroup>

Expand Down

0 comments on commit 3262d48

Please sign in to comment.