This commit is contained in:
Michal Vrba
2025-12-14 16:06:27 +01:00
parent 77a327fabf
commit 30ba1b22e3
+6 -20
View File
@@ -5,30 +5,16 @@
<handlers> <handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" /> <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
</handlers> </handlers>
<aspNetCore processPath="dotnet" arguments=".\TuneRipper.Api.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess"> <aspNetCore processPath="dotnet"
arguments=".\TuneRipper.Api.dll"
stdoutLogEnabled="true"
stdoutLogFile=".\logs\stdout"
hostingModel="inprocess"
forwardWindowsAuthToken="false">
<environmentVariables> <environmentVariables>
<environmentVariable name="ASPNETCORE_ENVIRONMENT" value="Production" /> <environmentVariable name="ASPNETCORE_ENVIRONMENT" value="Production" />
</environmentVariables> </environmentVariables>
</aspNetCore> </aspNetCore>
<rewrite>
<rules>
<rule name="Redirect to HTTPS" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTPS}" pattern="off" ignoreCase="true" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:0}" redirectType="Permanent" />
</rule>
</rules>
</rewrite>
<!-- Security headers -->
<httpProtocol>
<customHeaders>
<add name="X-Content-Type-Options" value="nosniff" />
<add name="X-Frame-Options" value="DENY" />
<add name="X-XSS-Protection" value="1; mode=block" />
</customHeaders>
</httpProtocol>
</system.webServer> </system.webServer>
</location> </location>
</configuration> </configuration>