-
Notifications
You must be signed in to change notification settings - Fork 3
/
web.config
219 lines (205 loc) · 9.39 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<configSections>
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="EABI.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/>
</sectionGroup>
</configSections>
<appSettings>
<add key="aspnet:UseTaskFriendlySynchronizationContext" value="true"/>
</appSettings>
<system.web>
<compilation debug="true" targetFramework="4.5"/>
<httpRuntime targetFramework="4.5"/>
<identity impersonate="false"/>
<customErrors mode="Off"/>
</system.web>
<system.serviceModel>
<client>
<endpoint address="https://gsa.ecpic.gov/eCPIC.WcfService/WcfService.svc" binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IWcfService" contract="eCPICWcfService.IWcfService" name="WSHttpBinding_IWcfService"/>
</client>
<services>
<service name="EABI.EAOpen">
<endpoint contract="EABI.IEAOpen" binding="webHttpBinding" bindingConfiguration="ApiQuotaBinding" behaviorConfiguration="webHttpBehavior"/>
<endpoint contract="EABI.IEAOpen" binding="webHttpBinding" bindingConfiguration="SecureApiQuotaBinding" behaviorConfiguration="webHttpBehavior"/>
</service>
</services>
<bindings>
<wsHttpBinding>
<binding name="WSHttpBinding_IWcfService">
<security mode="Transport">
<transport clientCredentialType="None"/>
</security>
</binding>
</wsHttpBinding>
<webHttpBinding>
<binding
name="ApiQuotaBinding"
crossDomainScriptAccessEnabled="True"
closeTimeout="00:03:00"
openTimeout="00:03:00"
receiveTimeout="00:10:00"
sendTimeout="00:03:00"
maxBufferSize="1048576000"
maxBufferPoolSize="1048576000"
maxReceivedMessageSize="1048576000">
<readerQuotas maxDepth="32" maxStringContentLength="1048576000" maxArrayLength="1048576000" maxBytesPerRead="1048576000"/>
<security mode="None"/>
</binding>
<binding
name="SecureApiQuotaBinding"
crossDomainScriptAccessEnabled="True"
closeTimeout="00:03:00"
openTimeout="00:03:00"
receiveTimeout="00:10:00"
sendTimeout="00:03:00"
maxBufferSize="1048576000"
maxBufferPoolSize="1048576000"
maxReceivedMessageSize="1048576000">
<readerQuotas maxDepth="32" maxStringContentLength="1048576000" maxArrayLength="1048576000" maxBytesPerRead="1048576000"/>
<security mode="Transport">
<transport clientCredentialType="None"/>
</security>
</binding>
</webHttpBinding>
</bindings>
<behaviors>
<endpointBehaviors>
<behavior name="webHttpBehavior">
<webHttp/>
</behavior>
</endpointBehaviors>
<serviceBehaviors>
<behavior>
<!-- To avoid disclosing metadata information, set the values below to false before deployment -->
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true"/>
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="true"/>
</behavior>
</serviceBehaviors>
</behaviors>
<protocolMapping>
<add binding="basicHttpsBinding" scheme="https"/>
</protocolMapping>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true"/>
</system.serviceModel>
<system.webServer>
<!-- The following section is the code required to run js code through node.js, rather than being served up to the client. See https://github.com/tjanczuk/iisnode/blob/master/src/samples/configuration/web.config for more details on the following
config items. See http://www.dotnetexpertguide.com/2012/01/installing-and-running-nodejs-iisnode.html for why @devErrorsEnabled, @debuggingEnabled and @loggingEnabled are set to False. -->
<handlers>
<add name="iisnode" path="server.js" verb="*" modules="iisnode"/>
</handlers>
<!-- This section tells IIS to look at the <public> folder for the Client side code. See "https://github.com/projectkudu/kudu/wiki/Using-a-custom-web.config-for-Node-apps" for this template -->
<rewrite>
<rules>
<clear/>
<rule name="HTTPS force" enabled="true" stopProcessing="true">
<match url="(.*)"/>
<conditions>
<add input="{HTTPS}" pattern="^OFF$"/>
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent"/>
</rule>
<rule name="Reroute Media" stopProcessing="true">
<match url="^.*media/(.*)"/>
<conditions logicalGrouping="MatchAll" trackAllCaptures="false"/>
<action type="Rewrite" url="mediafiles/{R:1}"/>
</rule>
<rule name="Reroute Application" stopProcessing="true">
<match url="^.*EAWEB/api/(.*)"/>
<conditions logicalGrouping="MatchAll" trackAllCaptures="false"/>
<action type="Rewrite" url="LegacyEAopen/{R:1}"/>
</rule>
<rule name="Reroute EAWeb" enabled="true" stopProcessing="true">
<match url="^.*EAWEB/(.*)"/>
<conditions logicalGrouping="MatchAll" trackAllCaptures="false"/>
<action type="Rewrite" url="Legacy/{R:1}" appendQueryString="true"/>
</rule>
<rule name="StaticContent">
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{REQUEST_URI}" pattern="^.*saxt(.*)" negate="true"/>
<add input="{REQUEST_URI}" pattern="^.*saxtwebservice(.*)" negate="true"/>
</conditions>
<action type="Rewrite" url="public{REQUEST_URI}"/>
<match url=".*"/>
</rule>
<rule name="DynamicContent">
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
<add input="{REQUEST_URI}" pattern="^.*saxt(.*)" negate="true"/>
<add input="{REQUEST_URI}" pattern="^.*saxtwebservice(.*)" negate="true"/>
</conditions>
<action type="Rewrite" url="server.js"/>
<match url=".*" negate="false"/>
</rule>
<!-- Removed node-inspector debug rule-->
<!-- First we consider whether the incoming URL matches a physical file in the /public folder -->
<!-- All other URLs are mapped to the node.js site entry point -->
</rules>
<rewriteMaps>
<rewriteMap name="Media">
<add key="/media" value="/media"/>
</rewriteMap>
<rewriteMap name="EAWeb to Legacy" defaultValue="/">
<add key="/EAWEB" value="/Legacy"/>
<add key="EAopen" value="LegacyEAopen"/>
</rewriteMap>
</rewriteMaps>
</rewrite>
<!-- exclude node_modules directory and subdirectories from serving by IIS since these are implementation details of node.js applications -->
<security>
<requestFiltering>
<hiddenSegments>
<add segment="node_modules"/>
</hiddenSegments>
</requestFiltering>
</security>
<!-- Boilerplate web.config addition, minus "falses" as noted above {dotnetexpertguide.com}-->
<iisnode
node_env="%node_env%"
nodeProcessCountPerApplication="0"
maxConcurrentRequestsPerProcess="1024"
maxNamedPipeConnectionRetry="100"
namedPipeConnectionRetryDelay="250"
maxNamedPipeConnectionPoolSize="512"
maxNamedPipePooledConnectionAge="30000"
asyncCompletionThreadCount="0"
initialRequestBufferSize="4096"
maxRequestBufferSize="65536"
watchedFiles="*.js;iisnode.yml"
uncFileChangesPollingInterval="3000"
gracefulShutdownTimeout="30000"
loggingEnabled="True"
logDirectory="iisnode"
debuggingEnabled="false"
debugHeaderEnabled="false"
debuggerPortRange="5058-6058"
debuggerPathSegment="debug"
maxLogFileSizeInKB="128"
maxTotalLogFileSizeInKB="1024000"
maxLogFiles="10000"
devErrorsEnabled="false"
flushResponse="false"
enableXFF="false"
promoteServerVars=""
configOverrides="iisnode.yml"
nodeProcessCommandLine=""%programfiles%\nodejs\node.exe""
interceptor=""%programfiles%\iisnode\interceptor.js""/>
<modules runAllManagedModulesForAllRequests="true"/>
<!-- To browse web app root directory during debugging, set the value below to true. Set to false before deployment to avoid disclosing web app folder information. -->
<directoryBrowse enabled="false"/>
<staticContent>
<remove fileExtension=".woff"/>
<!-- In case IIS already has this mime type -->
<mimeMap fileExtension=".woff" mimeType="application/x-font-woff"/>
<clientCache cacheControlMode="DisableCache"/>
</staticContent>
</system.webServer>
<applicationSettings>
<EABI.Properties.Settings>
<setting name="EABI_SFDC_SforceService" serializeAs="String">
<value>https://login.salesforce.com/services/Soap/c/32.0</value>
</setting>
</EABI.Properties.Settings>
</applicationSettings>
</configuration>