-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWeb.config
More file actions
69 lines (65 loc) · 2.59 KB
/
Copy pathWeb.config
File metadata and controls
69 lines (65 loc) · 2.59 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
67
68
69
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
<add key="client_id" value=""/>
<add key="client_key" value=""/>
<add key="local_path_segments" value="coolcalc/client/"/>
<add key="api_domain" value="https://stagingapi.coolcalc.com"/>
<add key="mj8_report_url" value="https://stagingapi.coolcalc.com/staging/MJ8Reports/?reportId="/>
<!-- Optional if you will use api2pdf-->
<add key="api2pdf_key" value=""/>
</appSettings>
<system.webServer>
<!--
Rewrite rule for coolcalc-api.
-->
<rewrite>
<rules>
<rule name="Rewrite API">
<match url="^coolcalc/client/staging/dealers/*"/>
<action type="Rewrite" url="/coolcalc/client/DealerCollectionHandler.ashx"/>
</rule>
<rule name="Rewrite MJ8eports">
<match url="^coolcalc/client/staging/MJ8Reports/*"/>
<action type="Rewrite" url="/coolcalc/client/MJ8Reports.ashx"/>
</rule>
<rule name="HTTP to HTTPS" stopProcessing="true">
<match url="(.*)"/>
<conditions>
<add input="{HTTPS}" pattern="^OFF$"/>
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="SeeOther"/>
</rule>
</rules>
</rewrite>
<defaultDocument>
<files>
<add value="coolcalc/ui/mj8/v-bootstrap/staging/restui.html"/>
</files>
</defaultDocument>
<!--
Allow WEB API requests that use PUT AND DELETE verbs.
-->
<handlers>
<remove name="SimpleHandlerFactory-Integrated-4.0"/>
<add name="SimpleHandlerFactory-Integrated-4.0" path="*.ashx" verb="GET,HEAD,POST,DEBUG,PUT,DELETE" type="System.Web.UI.SimpleHandlerFactory" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode,runtimeVersionv4.0"/>
</handlers>
<!--
If the application will be in another server, we need to enable CORS
-->
<!--<httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Origin" value="*" />
<add name="Access-Control-Allow-Headers" value="X-CSRF-Token" />
<add name="Access-Control-Expose-Headers" value="Location, Allow" />
<add name="Access-Control-Allow-Methods" value="POST, PUT, GET, DELETE, OPTIONS" />
</customHeaders>
</httpProtocol>-->
<!-- Set errorMode to detailed, to simply pass the HTTP 500 series error code and the JSON payload from our API on to the client -->
<httpErrors errorMode="Detailed" />
</system.webServer>
<system.web>
<compilation />
<authentication mode="Forms" />
</system.web>
</configuration>