-
Notifications
You must be signed in to change notification settings - Fork 0
/
Web_example.config
81 lines (81 loc) · 3.49 KB
/
Web_example.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
<?xml version="1.0"?>
<configuration>
<appSettings>
<add key="fileStoragePath" value=""/>
<add key="mailStoragePath" value=""/>
<add key="mailDomainName" value=""/>
<add key="mailServerAddress" value=""/>
<add key="WechatCorpId" value=""/>
<add key="WechatCorpSecret" value=""/>
</appSettings>
<connectionStrings>
<add name="SAAOConnectionString" connectionString="" providerName="System.Data.SqlClient"/>
<add name="SAAMConnectionString" connectionString="" providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web>
<compilation debug="true" targetFramework="4.5"/>
<httpRuntime maxRequestLength="2097151" executionTimeout="3600"/>
<pages controlRenderingCompatibilityVersion="4.0"/>
</system.web>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="2147483647"/>
</requestFiltering>
</security>
<rewrite>
<rules>
<rule name="Dashboard">
<match url="^dashboard$"/>
<action type="Rewrite" url="Default.aspx"/>
</rule>
<rule name="Notification">
<match url="^notification$"/>
<action type="Rewrite" url="Notification.aspx"/>
</rule>
<rule name="Mail">
<match url="^mail$"/>
<action type="Rewrite" url="Mail.aspx"/>
</rule>
<rule name="File">
<match url="^file$"/>
<action type="Rewrite" url="File.aspx"/>
</rule>
<rule name="Calendar">
<match url="^calendar$"/>
<action type="Rewrite" url="Calendar.aspx"/>
</rule>
<rule name="Contact">
<match url="^contact$"/>
<action type="Rewrite" url="Contact.aspx"/>
</rule>
<rule name="Setting">
<match url="^setting$"/>
<action type="Rewrite" url="Setting.aspx"/>
</rule>
<rule name="Login">
<match url="^login$"/>
<action type="Rewrite" url="Login.aspx"/>
</rule>
<rule name="Ajax">
<match url="^\b(user|mail|file|dashboard|contact|calendar|notification)\b.\b(login|password|logout|list|send|upload|create|update|info|unbind)\b$"/>
<action type="Rewrite" url="ajax/{R:1}.ashx?action={R:2}"/>
</rule>
<rule name="Ajax2">
<match url="^\b(mail|file|dashboard|contact|calendar|notification|user)\b.\b(list|info|attachment|display|delete|update|download|report|towechat|filepush)\b.(.*)$"/>
<action type="Rewrite" url="ajax/{R:1}.ashx?action={R:2}&{R:3}"/>
</rule>
</rules>
</rewrite>
</system.webServer>
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs"
type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
warningLevel="4" compilerOptions="/langversion:6 /nowarn:1659;1699;1701"/>
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb"
type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
warningLevel="4" compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\"Web\" /optionInfer+"/>
</compilers>
</system.codedom>
</configuration>