39 lines
1.3 KiB
Plaintext
39 lines
1.3 KiB
Plaintext
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
|
<configuration>
|
||
|
|
<system.webServer>
|
||
|
|
<handlers>
|
||
|
|
<add name="iisnode" path="server.js" verb="*" modules="iisnode" resourceType="File" />
|
||
|
|
</handlers>
|
||
|
|
<rewrite>
|
||
|
|
<rules>
|
||
|
|
<!-- Force HTTPS redirect -->
|
||
|
|
<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>
|
||
|
|
|
||
|
|
<!-- Force www (optional - uncomment if needed) -->
|
||
|
|
<!--
|
||
|
|
<rule name="Force www" stopProcessing="true">
|
||
|
|
<match url="(.*)" />
|
||
|
|
<conditions>
|
||
|
|
<add input="{HTTP_HOST}" pattern="^pozo\.app$" />
|
||
|
|
</conditions>
|
||
|
|
<action type="Redirect" url="https://www.pozo.app/{R:1}" redirectType="Permanent" />
|
||
|
|
</rule>
|
||
|
|
-->
|
||
|
|
|
||
|
|
<!-- Route all requests to Node.js server -->
|
||
|
|
<rule name="pozo.dev" stopProcessing="true">
|
||
|
|
<match url="/*" />
|
||
|
|
<action type="Rewrite" url="server.js" />
|
||
|
|
</rule>
|
||
|
|
</rules>
|
||
|
|
</rewrite>
|
||
|
|
<iisnode node_env="production" />
|
||
|
|
</system.webServer>
|
||
|
|
</configuration>
|