Add some configs from a sample kudu deployment
https://github.com/amitapl/CustomScriptSample
This commit is contained in:
parent
ce9712e6b1
commit
05d6a44429
|
@ -0,0 +1,32 @@
|
|||
# For security reasons, logging, dev errors, and debugging
|
||||
# should be disabled in production deployments:
|
||||
|
||||
loggingEnabled: true
|
||||
debuggingEnabled: false
|
||||
devErrorsEnabled: true
|
||||
node_env: production
|
||||
|
||||
# Other settings with their default values follow.
|
||||
# For documentation see https://github.com/tjanczuk/iisnode/blob/master/src/samples/configuration/iisnode.yml
|
||||
|
||||
# nodeProcessCountPerApplication: 1
|
||||
# maxConcurrentRequestsPerProcess: 1024
|
||||
# maxNamedPipeConnectionRetry: 24
|
||||
# namedPipeConnectionRetryDelay: 250
|
||||
# maxNamedPipeConnectionPoolSize: 512
|
||||
# maxNamedPipePooledConnectionAge: 30000
|
||||
# asyncCompletionThreadCount: 0
|
||||
# initialRequestBufferSize: 4096
|
||||
# maxRequestBufferSize: 65536
|
||||
# watchedFiles: *.js;iisnode.yml;node_modules\*
|
||||
# uncFileChangesPollingInterval: 5000
|
||||
# gracefulShutdownTimeout: 60000
|
||||
# logDirectoryNameSuffix: logs
|
||||
# debuggerPortRange: 5058-6058
|
||||
# debuggerPathSegment: debug
|
||||
# maxLogFileSizeInKB: 128
|
||||
# appendToExistingLog: false
|
||||
# logFileFlushInterval: 5000
|
||||
# flushResponse: false
|
||||
# enableXFF: false
|
||||
# promoteServerVars:
|
|
@ -0,0 +1,27 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<system.webServer>
|
||||
<handlers>
|
||||
<add name="iisnode" path="src/index.js" verb="*" modules="iisnode"/>
|
||||
</handlers>
|
||||
<rewrite>
|
||||
<rules>
|
||||
<rule name="StaticContent">
|
||||
<action type="Rewrite" url="public{REQUEST_URI}"/>
|
||||
</rule>
|
||||
<rule name="DynamicContent">
|
||||
<conditions>
|
||||
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="True"/>
|
||||
</conditions>
|
||||
<action type="Rewrite" url="src/index.js"/>
|
||||
</rule>
|
||||
</rules>
|
||||
</rewrite>
|
||||
<iisnode
|
||||
nodeProcessCommandLine=""%programfiles(x86)%\nodejs\node.exe""
|
||||
debuggingEnabled="false"
|
||||
logDirectory="..\..\LogFiles\nodejs"
|
||||
watchedFiles="*.js;iisnode.yml;node_modules\*;views\*.jade;views\*.ejb;routes\*.js" />
|
||||
</system.webServer>
|
||||
</configuration>
|
||||
|
Loading…
Reference in New Issue