generated from Teddy95/webapp-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweb.config
29 lines (29 loc) · 797 Bytes
/
web.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
<add key="NODE_ENV" value="production" />
</appSettings>
<system.webServer>
<handlers>
<add name="iisnode" path="iis.js" verb="*" modules="iisnode" />
</handlers>
<httpProtocol>
<customHeaders>
<add name="Content-Security-Policy" value="script-src * 'unsafe-inline' 'unsafe-eval';" />
</customHeaders>
</httpProtocol>
<rewrite>
<rules>
<rule name="StaticContent">
<action type="Rewrite" url="assets{REQUEST_URI}"/>
</rule>
<rule name="DynamicContent">
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="True"/>
</conditions>
<action type="Rewrite" url="iis.js"/>
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>