2019-04-19 21:52:20 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<configuration>
|
|
|
|
<system.webServer>
|
2019-04-20 19:20:56 +00:00
|
|
|
<httpProtocol>
|
|
|
|
<customHeaders>
|
|
|
|
<clear />
|
|
|
|
<add name="X-Frame-Options" value="DENY" />
|
|
|
|
<add name="X-XSS-Protection" value="1; mode=block" />
|
|
|
|
<add name="X-Content-Type-Options" value="nosniff" />
|
|
|
|
<add name="Referrer-Policy" value="same-origin" />
|
|
|
|
</customHeaders>
|
|
|
|
<redirectHeaders>
|
|
|
|
<clear />
|
|
|
|
</redirectHeaders>
|
|
|
|
</httpProtocol>
|
2019-04-19 21:52:20 +00:00
|
|
|
<rewrite>
|
|
|
|
<rules>
|
2019-04-20 19:20:56 +00:00
|
|
|
<rule name="Force HTTPS" stopProcessing="true">
|
|
|
|
<match url="(.*)" />
|
|
|
|
<conditions>
|
|
|
|
<add input="{HTTPS}" pattern="off" ignoreCase="true" />
|
|
|
|
</conditions>
|
|
|
|
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="Permanent" />
|
|
|
|
</rule>
|
2019-04-19 21:52:20 +00:00
|
|
|
<rule name="Vue" patternSyntax="Wildcard">
|
|
|
|
<match url="*" />
|
|
|
|
<conditions logicalGrouping="MatchAll">
|
|
|
|
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
|
|
|
|
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
|
|
|
|
</conditions>
|
|
|
|
<action type="Rewrite" url="index.html" />
|
|
|
|
</rule>
|
|
|
|
</rules>
|
2019-04-20 19:20:56 +00:00
|
|
|
<outboundRules>
|
|
|
|
<rule name="HSTS Header" enabled="true">
|
|
|
|
<match serverVariable="RESPONSE_Strict_Transport_Security" pattern=".*" />
|
|
|
|
<conditions>
|
|
|
|
<add input="{HTTPS}" pattern="on" ignoreCase="true" />
|
|
|
|
</conditions>
|
|
|
|
<action type="Rewrite" value="max-age=31536000; preload" />
|
|
|
|
</rule>
|
|
|
|
</outboundRules>
|
2019-04-19 21:52:20 +00:00
|
|
|
</rewrite>
|
|
|
|
</system.webServer>
|
|
|
|
</configuration>
|