-
Notifications
You must be signed in to change notification settings - Fork 0
API Test Configuration
Robert Polak edited this page Aug 6, 2019
·
19 revisions
Home / Configuration / API Test
Each Deployment environment have specific test\API.Test\Web.config file:
-
test\API.Test\Web.config- Development environment (Debug) -
test\API.Test\Web.Live.config- Production environment (Live) -
test\API.Test\Web.Test.config- Test environment (Test) -
test\API.Test\Web.UATconfig- UAT environment (UAT)
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.7.2" />
<!-- executionTimeout (Seconds), maxRequestLength (KB) = APP_PX_MAX_SIZE_BYTE + 1MB -->
<httpRuntime executionTimeout="3600" maxRequestLength="11264" targetFramework="4.7.2" />
</system.web>
...
</configuration><configuration>
...
<system.webServer>
<security>
<requestFiltering>
<!-- maxAllowedContentLength (B) APP_PX_MAX_SIZE_BYTE + 1MB -->
<requestLimits maxAllowedContentLength="11534336" />
</requestFiltering>
</security>
<handlers>
<!-- Add the handler to instruct IIS to serve the JSON RPC webservice requests -->
<add verb="POST,GET" path="api.jsonrpc" name="API" type="API.JSONRPC" />
</handlers>
...
</system.webServer>
...
</configuration><configuration>
...
<system.webServer>
<httpProtocol>
<customHeaders>
<!-- Local CORS -->
<add name="Access-Control-Allow-Origin" value="http://localhost" />
<add name="Access-Control-Allow-Headers" value="Origin, X-Requested-With, Content-Type, Accept" />
<add name="Access-Control-Allow-Credentials" value="true" />
</customHeaders>
</httpProtocol>
<rewrite>
<outboundRules>
<!-- Private CORS - Default -->
<rule name="Access-Control-Allow-Origin" enabled="true" patternSyntax="Wildcard">
<match serverVariable="RESPONSE_Access-Control-Allow-Origin" pattern="*" />
<conditions trackAllCaptures="false"></conditions>
<action type="Rewrite" value="{HTTP_ORIGIN}" />
</rule>
<!-- Private CORS - DNS filter -->
<!--
<rule name="WWW-Authenticate" enabled="true" patternSyntax="Wildcard">
<match serverVariable="RESPONSE_WWW-Authenticate" pattern="*" />
<conditions>
<add input="{HTTP_ORIGIN}" pattern="https://domain" negate="true" />
</conditions>
<action type="Rewrite" value="Anonymous" />
</rule>
-->
<!-- Private CORS - IP filter -->
<!--
<rule name="WWW-Authenticate" enabled="true" patternSyntax="Wildcard">
<match serverVariable="RESPONSE_WWW-Authenticate" pattern="*" />
<conditions>
<add input="{REMOTE_ADDR}" pattern="x.y.z.j" negate="true" />
</conditions>
<action type="Rewrite" value="Anonymous" />
</rule>
-->
</outboundRules>
</rewrite>
</system.webServer>
...
</configuration>Details about API Library JSONRPC Configuration at Configuration
Details about API Library Active Configuration at Configuration
Details about API Library ReCAPTCHA Configuration at Configuration
Details about API Library eMail Configuration at Configuration
Details about API Library ADO Configuration at Configuration
Details about API Library MemCacheD Configuration at Configuration
Details about API Library DB - Connection Strings Configuration at Configuration
Details about API Library MemCacheD Configuration at Configuration
Details about API Library Log4Net Configuration at Configuration