Skip to content

Commit

Permalink
more xdt updating
Browse files Browse the repository at this point in the history
  • Loading branch information
aspriddell committed Nov 26, 2023
1 parent 69b205e commit 775011f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-server-iis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
run: dotnet nuget update source github --username USERNAME --password ${{ github.token }} --store-password-in-clear-text

- name: Build Server Package
run: dotnet publish -c Release -r win-x64 --self-contained false -p:Version=${{ github.event.release.tag_name }} -p:PublishProfile=IISDeploy.pubxml -p:EnvironmentName=Production -p:ServerPublish=true DragonFruit.OnionFruit.Web
run: dotnet publish -c Release -r win-x64 --self-contained false -p:Version=${{ github.event.release.tag_name }} -p:PublishProfile=IISDeploy.pubxml -p:EnvironmentName=Production -p:ServerPublish=true DragonFruit.OnionFruit.Web

- name: Archive Output
run: Compress-Archive -Path .\DragonFruit.OnionFruit.Web\bin\publish\* -DestinationPath ${{ env.OUTPUT_FILE_NAME }}
Expand Down
6 changes: 3 additions & 3 deletions DragonFruit.OnionFruit.Web/web.Production.config
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
<environmentVariable xdt:Locator="Match(name)" xdt:Transform="InsertIfMissing" name="ASPNETCORE_FORWARDEDHEADERS_ENABLED" value="true"/>
</environmentVariables>
</aspNetCore>
<rewrite>
<rules>
<rule name="OnionCDN Rewrites" stopProcessing="true" xdt:Locator="Match(name)" xdt:Transform="InsertIfMissing">
<rewrite xdt:Transform="InsertIfMissing">
<rules xdt:Transform="InsertIfMissing">
<rule xdt:Transform="InsertIfMissing" xdt:Locator="Match(name)" name="OnionCDN Rewrites" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTP_HOST}" pattern="onioncdn.dragonfruit.network" />
Expand Down

0 comments on commit 775011f

Please sign in to comment.