-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathweb.config
More file actions
66 lines (59 loc) · 2.7 KB
/
Copy pathweb.config
File metadata and controls
66 lines (59 loc) · 2.7 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<configuration>
<system.webServer>
<handlers>
<!-- указывает, что файл app.js - это приложение node.js, обрабатываемое модулем iisnode -->
<add name="iisnode" path="Gopher.js" verb="*" modules="iisnode" />
</handlers>
<rewrite>
<rules>
<!-- Не мешать запросам журналов -->
<rule name="LogFile" patternSyntax="ECMAScript" stopProcessing="true">
<match url="^[a-zA-Z0-9_\-]+\.js\.logs\/\d+\.txt$" />
</rule>
<!-- Не мешать запросам отладки инспектора узлов -->
<rule name="NodeInspector" patternSyntax="ECMAScript" stopProcessing="true">
<match url="^Gopher.js\/debug[\/]?" />
</rule>
<!-- Сначала проверяем, соответствует ли входящий URL-адрес физическому файлу в папке /public -->
<rule name="StaticContent">
<action type="Rewrite" url="public{REQUEST_URI}" />
</rule>
<!-- Все прочие URL-адреса сопоставляются с точкой входа приложения Node.js -->
<rule name="DynamicContent">
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="True" />
</conditions>
<action type="Rewrite" url="Gopher.js" />
</rule>
</rules>
</rewrite>
<!-- Можно управлять размещением узла в IIS с помощью следующих параметров -->
<!--<iisnode
node_env="%node_env%"
nodeProcessCountPerApplication="1"
maxConcurrentRequestsPerProcess="1024"
maxNamedPipeConnectionRetry="3"
namedPipeConnectionRetryDelay="2000"
maxNamedPipeConnectionPoolSize="512"
maxNamedPipePooledConnectionAge="30000"
asyncCompletionThreadCount="0"
initialRequestBufferSize="4096"
maxRequestBufferSize="65536"
watchedFiles="*.js"
uncFileChangesPollingInterval="5000"
gracefulShutdownTimeout="60000"
loggingEnabled="true"
logDirectoryNameSuffix="logs"
debuggingEnabled="true"
debuggerPortRange="5058-6058"
debuggerPathSegment="debug"
maxLogFileSizeInKB="128"
appendToExistingLog="false"
logFileFlushInterval="5000"
devErrorsEnabled="true"
flushResponse="false"
enableXFF="false"
promoteServerVars=""
/>-->
</system.webServer>
</configuration>