forked from openziti/ziti-console
-
Notifications
You must be signed in to change notification settings - Fork 0
/
web.config
46 lines (46 loc) · 2.05 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<staticContent>
<clientCache cacheControlMode="UseMaxAge" />
</staticContent>
<handlers>
<add name="StaticFilesCss" path="/assets/styles/*.css" verb="*" modules="StaticFileModule" resourceType="File" requireAccess="Read" />
<add name="StaticFilesJs" path="/assets/scripts/*.js" verb="*" modules="StaticFileModule" resourceType="File" requireAccess="Read" />
<add name="iisnode" path="server.cjs" verb="*" modules="iisnode" responseBufferLimit="0" />
</handlers>
<rewrite>
<rules>
<clear />
<rule name="StaticContent" stopProcessing="true">
<match url="/assets/([\S]+[.](jpg|jpeg|gif|css|png|js|ts|cscc|less|ico|html|map|svg))" />
<action type="None" />
</rule>
<rule name="ZitiRedirect">
<match url="/*" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="server.cjs" />
</rule>
<rule name="Secure" enabled="true" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{HTTPS}" pattern="off" ignoreCase="true" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="Found" />
</rule>
</rules>
</rewrite>
<modules>
<remove name="WebDAVModule" />
</modules>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="334217728" />
</requestFiltering>
</security>
<iisnode node_env="production" enableXFF="true" />
</system.webServer>
<system.web>
<httpRuntime maxRequestLength="51200" executionTimeout="3600" />
</system.web>
</configuration>