You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

259 lines
14 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. For more information on how to configure your ASP.NET application, please visit
  4. http://go.microsoft.com/fwlink/?LinkId=169433
  5. -->
  6. <configuration>
  7. <configSections>
  8. <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
  9. <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
  10. </configSections>
  11. <connectionStrings>
  12. <add name="DefaultConnection" providerName="System.Data.SqlClient" connectionString="Data Source=(LocalDb)\v11.0;Initial Catalog=aspnet-ErpApp-20150813094550;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnet-DefenseWeb-20150813094550.mdf" />
  13. </connectionStrings>
  14. <appSettings>
  15. <!--<add key="owin:AutomaticAppStartup" value="false"></add>-->
  16. <!-- Mail的編碼格式 預設:UTF-8 -->
  17. <add key="MailEncoding" value="UTF-8" />
  18. <!-- 發件人名稱 預設:系統郵件 -->
  19. <add key="FromName" value="系統郵件[請勿回覆]" />
  20. <!-- 發件人地址 預設:ot.syssender@gmail.com -->
  21. <!--<add key="FromEmail" value="ethan.chen@origtek.com.cn" />-->
  22. <add key="FromEmail" value="ot.syssender@gmail.com" />
  23. <!--<add key="FromEmail" value="Origtek@google.com" />-->
  24. <!-- 發件人帳號 預設:ot.syssender@gmail.com -->
  25. <!--<add key="FromUserId" value="ot.syssender@gmail.com" />-->
  26. <add key="FromUserId" value="ot.syssender@gmail.com" />
  27. <!--<add key="FromUserId" value="" />-->
  28. <!-- 發件人密碼 預設:25153819 -->
  29. <!--<add key="FromPassword" value="654321zzz" />-->
  30. <add key="FromPassword" value="idcpqagtpcpjeyht" />
  31. <!-- 郵件服務器地址 預設:smtp.gmail.com -->
  32. <!--<add key="Server" value="smtp.gmail.com" />-->
  33. <add key="Server" value="smtp.gmail.com" />
  34. <!-- 郵件服務器Port 預設:587 -->
  35. <!--<add key="ServerPort" value="587" />-->
  36. <!--<add key="ServerPort" value="587" />-->
  37. <add key="ServerPort" value="587" />
  38. <!-- 超時(秒) 預設:60 -->
  39. <add key="Timeout" value="60" />
  40. <!-- 是否啟用 SSL 認證。true|false 預設:true -->
  41. <!--<add key="SSL" value="true" />-->
  42. <add key="SSL" value="true" />
  43. <!-- 系統預設加密解密密匙Key -->
  44. <add key="DefaultCryptionKey" value="OTK7950future" />
  45. <!-- 系統預設加密解密密匙IV -->
  46. <add key="DefaultCryptionIV" value="394820" />
  47. <!-- 登陸後有效時間(分鐘) -->
  48. <add key="ExpireTime" value="240" />
  49. <!-- API失效時間(秒) -->
  50. <add key="UrlExpireTime" value="120" />
  51. <!-- 系統預設顯示樣式 -->
  52. <add key="DefaultTheme" value="Common" />
  53. <!-- 連接字符串是否加密 -->
  54. <add key="ConStringEncrypt" value="false" />
  55. <!-- 是否進行外網驗證 -->
  56. <add key="IsCheckNet" value="true" />
  57. <!--文字檔轉換助手組織ID-->
  58. <add key="TransferOrgID" value="TE" />
  59. <!--文字檔轉換助手帳號ID-->
  60. <add key="TransferUerID" value="EUROTRAN" />
  61. <!--卡鐘打卡資料路徑-->
  62. <add key="AttendancePath" value="D:\EIP\EIP-new\" />
  63. <!--系統設定上班開始時間key值-->
  64. <add key="WorkTimePMKey" value="WorkTimePM" />
  65. <!--系統設定上班結束時間key值-->
  66. <add key="WorkTimeAMKey" value="WorkTimeAM" />
  67. <!--系統設定最晚上班時間key值-->
  68. <add key="LatestShiftTimeKey" value="LatestShiftTime" />
  69. <!--系統設定遲到緩衝key值-->
  70. <add key="DelayBufferTimeKey" value="DelayBufferTime" />
  71. <!--前臺OrgID使用配置-->
  72. <add key="OrgID" value="TG" />
  73. <!-- 連接字符串 -->
  74. <!--<add key="ConnectionString" value="server=192.168.1.104;database=EURO;uid=ot;pwd=ot20140507" />-->
  75. <add key="ConnectionString" value="server=192.168.1.19;database=EURO;uid=sa;pwd=1qaz@WSX;Max Pool Size=5120;Min Pool Size=5;connect timeout=20;" />
  76. <!--<add key="ConnectionString" value="server=ALINA-PC\JOHN;database=EURO_Online;uid=sa;pwd=admin123!@#" />-->
  77. <!-- DSB類型 -->
  78. <add key="DbType" value="sqlserver" />
  79. <!-- 文件產出位置 -->
  80. <add key="OutFilesPath" value="OutFiles/Temporary/" />
  81. <!--多語系初始化HTML路徑-->
  82. <add key="InitLngHTMLPath" value="Page" />
  83. <!--多語系初始化HTML路徑-->
  84. <add key="InitLngJSPath" value="Scripts" />
  85. <!-- WebService地址 -->
  86. <add key="WebServiceUrl" value="http://localhost:3466/WS/ComWebService.asmx" />
  87. <add key="ida:AppId" value="8509ba61-9451-4960-94d8-10934d5365cc" />
  88. <add key="ida:AppPassword" value="qWWKUV056{*{)fuowwgHK31" />
  89. <add key="ida:RedirectUri" value="http://localhost:3466" />
  90. <add key="ida:AppScopes" value=" User.Read Mail.ReadWrite Mail.Send Calendars.ReadWrite Contacts.Read Contacts.ReadWrite" />
  91. <add key="ida:GraphRootUri" value="https://graph.microsoft.com/beta" />
  92. </appSettings>
  93. <!--設置json的最大長度-->
  94. <system.web.extensions>
  95. <scripting>
  96. <webServices>
  97. <jsonSerialization maxJsonLength="50000000" />
  98. </webServices>
  99. </scripting>
  100. </system.web.extensions>
  101. <!--
  102. 有关 web.config 更改的说明,请参见 http://go.microsoft.com/fwlink/?LinkId=235367。
  103. 可在 <httpRuntime> 标记上设置以下特性。
  104. <system.Web>
  105. <httpRuntime targetFramework="4.5.2" />
  106. </system.Web>
  107. -->
  108. <system.web>
  109. <webServices>
  110. <protocols>
  111. <add name="HttpGet" />
  112. <add name="HttpPost" />
  113. </protocols>
  114. </webServices>
  115. <pages controlRenderingCompatibilityVersion="4.0">
  116. <namespaces>
  117. <add namespace="System.Web.Helpers" />
  118. <add namespace="System.Web.Mvc" />
  119. <add namespace="System.Web.Mvc.Ajax" />
  120. <add namespace="System.Web.Mvc.Html" />
  121. <add namespace="System.Web.Routing" />
  122. <add namespace="System.Web.WebPages" />
  123. </namespaces>
  124. </pages>
  125. <compilation debug="true" targetFramework="4.6" />
  126. <!--maxRequestLength(組織為KB) 1024KB=1MB-->
  127. <httpRuntime targetFramework="4.5.2" requestValidationMode="2.0" maxQueryStringLength="204800" maxRequestLength="102400" executionTimeout="10800" />
  128. <sessionState mode="InProc" timeout="60" cookieless="false" />
  129. </system.web>
  130. <system.webServer>
  131. <security>
  132. <requestFiltering allowDoubleEscaping="true">
  133. <requestLimits maxQueryString="2147483648" maxAllowedContentLength="1048576000" />
  134. </requestFiltering>
  135. </security>
  136. <httpErrors>
  137. <remove statusCode="404" subStatusCode="-1" />
  138. <error statusCode="404" prefixLanguageFilePath="" path="/Page/Error.html" responseMode="ExecuteURL" />
  139. </httpErrors>
  140. <validation validateIntegratedModeConfiguration="false" />
  141. <modules runAllManagedModulesForAllRequests="true" />
  142. <httpProtocol>
  143. <!--開啟CORS-->
  144. <customHeaders>
  145. <clear />
  146. <add name="Access-Control-Allow-Origin" value="*" />
  147. <add name="Access-Control-Allow-Headers" value="Content-Type" />
  148. <add name="Access-Control-Allow-Credentials" value="true" />
  149. </customHeaders>
  150. </httpProtocol>
  151. <handlers>
  152. <remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" />
  153. <remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" />
  154. <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
  155. <add name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0" />
  156. <add name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0" />
  157. <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
  158. </handlers>
  159. </system.webServer>
  160. <runtime>
  161. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  162. <dependentAssembly>
  163. <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
  164. <bindingRedirect oldVersion="0.0.0.0-11.0.0.0" newVersion="11.0.0.0" />
  165. </dependentAssembly>
  166. <dependentAssembly>
  167. <assemblyIdentity name="DotNetOpenAuth.Core" publicKeyToken="2780ccd10d57b246" />
  168. <bindingRedirect oldVersion="1.0.0.0-4.0.0.0" newVersion="4.1.0.0" />
  169. </dependentAssembly>
  170. <dependentAssembly>
  171. <assemblyIdentity name="DotNetOpenAuth.AspNet" publicKeyToken="2780ccd10d57b246" />
  172. <bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0" />
  173. </dependentAssembly>
  174. <dependentAssembly>
  175. <assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
  176. <bindingRedirect oldVersion="0.0.0.0-4.1.1.2" newVersion="4.1.1.2" />
  177. </dependentAssembly>
  178. <dependentAssembly>
  179. <assemblyIdentity name="log4net" publicKeyToken="669e0ddf0bb1aa2a" culture="neutral" />
  180. <bindingRedirect oldVersion="0.0.0.0-1.2.13.0" newVersion="2.0.8.0" />
  181. </dependentAssembly>
  182. <dependentAssembly>
  183. <assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  184. <bindingRedirect oldVersion="0.0.0.0-4.1.1.0" newVersion="4.1.1.0" />
  185. </dependentAssembly>
  186. <dependentAssembly>
  187. <assemblyIdentity name="Microsoft.Owin.Security" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  188. <bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
  189. </dependentAssembly>
  190. <dependentAssembly>
  191. <assemblyIdentity name="Microsoft.AspNet.SignalR.Core" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  192. <bindingRedirect oldVersion="0.0.0.0-2.2.2.0" newVersion="2.2.2.0" />
  193. </dependentAssembly>
  194. <dependentAssembly>
  195. <assemblyIdentity name="System.Web.Cors" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  196. <bindingRedirect oldVersion="0.0.0.0-5.2.4.0" newVersion="5.2.4.0" />
  197. </dependentAssembly>
  198. <dependentAssembly>
  199. <assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  200. <bindingRedirect oldVersion="0.0.0.0-5.2.4.0" newVersion="5.2.4.0" />
  201. </dependentAssembly>
  202. <dependentAssembly>
  203. <assemblyIdentity name="System.Net.Http.Formatting" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  204. <bindingRedirect oldVersion="0.0.0.0-5.2.4.0" newVersion="5.2.4.0" />
  205. </dependentAssembly>
  206. <dependentAssembly>
  207. <assemblyIdentity name="System.IdentityModel.Tokens.Jwt" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  208. <bindingRedirect oldVersion="0.0.0.0-5.2.1.0" newVersion="5.2.1.0" />
  209. </dependentAssembly>
  210. <dependentAssembly>
  211. <assemblyIdentity name="Microsoft.IdentityModel.Protocols.OpenIdConnect" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  212. <bindingRedirect oldVersion="0.0.0.0-5.2.1.0" newVersion="5.2.1.0" />
  213. </dependentAssembly>
  214. <dependentAssembly>
  215. <assemblyIdentity name="Microsoft.IdentityModel.Tokens" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  216. <bindingRedirect oldVersion="0.0.0.0-5.2.1.0" newVersion="5.2.1.0" />
  217. </dependentAssembly>
  218. <dependentAssembly>
  219. <assemblyIdentity name="Microsoft.IdentityModel.Protocols" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  220. <bindingRedirect oldVersion="0.0.0.0-5.2.1.0" newVersion="5.2.1.0" />
  221. </dependentAssembly>
  222. <dependentAssembly>
  223. <assemblyIdentity name="System.Web.Razor" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  224. <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  225. </dependentAssembly>
  226. <dependentAssembly>
  227. <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
  228. <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  229. </dependentAssembly>
  230. <dependentAssembly>
  231. <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
  232. <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  233. </dependentAssembly>
  234. <dependentAssembly>
  235. <assemblyIdentity name="System.Web.WebPages.Razor" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  236. <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  237. </dependentAssembly>
  238. <dependentAssembly>
  239. <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
  240. <bindingRedirect oldVersion="1.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
  241. </dependentAssembly>
  242. <dependentAssembly>
  243. <assemblyIdentity name="Microsoft.OData.Client" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  244. <bindingRedirect oldVersion="0.0.0.0-6.13.0.0" newVersion="6.13.0.0" />
  245. </dependentAssembly>
  246. <dependentAssembly>
  247. <assemblyIdentity name="Microsoft.OData.Core" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  248. <bindingRedirect oldVersion="0.0.0.0-6.13.0.0" newVersion="6.13.0.0" />
  249. </dependentAssembly>
  250. </assemblyBinding>
  251. </runtime>
  252. <entityFramework>
  253. <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
  254. <parameters>
  255. <parameter value="v11.0" />
  256. </parameters>
  257. </defaultConnectionFactory>
  258. </entityFramework>
  259. </configuration>