Skip to content

Commit

Permalink
move web.config
Browse files Browse the repository at this point in the history
  • Loading branch information
kreeben committed Oct 6, 2020
1 parent e8f76bb commit cecd796
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 25 deletions.
25 changes: 0 additions & 25 deletions src/Sir.HttpServer/web.config

This file was deleted.

30 changes: 30 additions & 0 deletions src/web.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<location path="." inheritInChildApplications="false">
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath="%LAUNCHER_PATH%" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" arguments="%LAUNCHER_ARGS%">
<environmentVariables>
<environmentVariable name="COMPLUS_ForceENC" value="1" />
<environmentVariable name="ASPNETCORE_ENVIRONMENT" value="Development" />
</environmentVariables>
</aspNetCore>
</system.webServer>
</location>
<system.webServer>
<rewrite>
<rules>
<rule name="redirect_to_https" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTPS}" pattern="^OFF$" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" appendQueryString="false" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
<!--ProjectGuid: c94c2f5d-ae55-4157-a74a-26d49ee73e96-->

0 comments on commit cecd796

Please sign in to comment.