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.

260 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=www.origtek.com,1438;database=EURO;uid=Showeasy;pwd=!QAZ2wsx;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:WebsiteUri" value="http://www.origtek.com:3000" />
  91. <add key="ida:AppScopes" value=" User.Read Mail.ReadWrite Mail.Send Calendars.ReadWrite Contacts.Read Contacts.ReadWrite" />
  92. <add key="ida:GraphRootUri" value="https://graph.microsoft.com/beta" />
  93. </appSettings>
  94. <!--設置json的最大長度-->
  95. <system.web.extensions>
  96. <scripting>
  97. <webServices>
  98. <jsonSerialization maxJsonLength="50000000" />
  99. </webServices>
  100. </scripting>
  101. </system.web.extensions>
  102. <!--
  103. 有关 web.config 更改的说明,请参见 http://go.microsoft.com/fwlink/?LinkId=235367。
  104. 可在 <httpRuntime> 标记上设置以下特性。
  105. <system.Web>
  106. <httpRuntime targetFramework="4.5.2" />
  107. </system.Web>
  108. -->
  109. <system.web>
  110. <webServices>
  111. <protocols>
  112. <add name="HttpGet" />
  113. <add name="HttpPost" />
  114. </protocols>
  115. </webServices>
  116. <pages controlRenderingCompatibilityVersion="4.0">
  117. <namespaces>
  118. <add namespace="System.Web.Helpers" />
  119. <add namespace="System.Web.Mvc" />
  120. <add namespace="System.Web.Mvc.Ajax" />
  121. <add namespace="System.Web.Mvc.Html" />
  122. <add namespace="System.Web.Routing" />
  123. <add namespace="System.Web.WebPages" />
  124. </namespaces>
  125. </pages>
  126. <compilation debug="true" targetFramework="4.6" />
  127. <!--maxRequestLength(組織為KB) 1024KB=1MB-->
  128. <httpRuntime targetFramework="4.5.2" requestValidationMode="2.0" maxQueryStringLength="204800" maxRequestLength="102400" executionTimeout="10800" />
  129. <sessionState mode="InProc" timeout="60" cookieless="false" />
  130. </system.web>
  131. <system.webServer>
  132. <security>
  133. <requestFiltering allowDoubleEscaping="true">
  134. <requestLimits maxQueryString="2147483648" maxAllowedContentLength="1048576000" />
  135. </requestFiltering>
  136. </security>
  137. <httpErrors>
  138. <remove statusCode="404" subStatusCode="-1" />
  139. <error statusCode="404" prefixLanguageFilePath="" path="/Page/Error.html" responseMode="ExecuteURL" />
  140. </httpErrors>
  141. <validation validateIntegratedModeConfiguration="false" />
  142. <modules runAllManagedModulesForAllRequests="true" />
  143. <httpProtocol>
  144. <!--開啟CORS-->
  145. <customHeaders>
  146. <clear />
  147. <add name="Access-Control-Allow-Origin" value="*" />
  148. <add name="Access-Control-Allow-Headers" value="Content-Type" />
  149. <add name="Access-Control-Allow-Credentials" value="true" />
  150. </customHeaders>
  151. </httpProtocol>
  152. <handlers>
  153. <remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" />
  154. <remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" />
  155. <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
  156. <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" />
  157. <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" />
  158. <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" />
  159. </handlers>
  160. </system.webServer>
  161. <runtime>
  162. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  163. <dependentAssembly>
  164. <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
  165. <bindingRedirect oldVersion="0.0.0.0-11.0.0.0" newVersion="11.0.0.0" />
  166. </dependentAssembly>
  167. <dependentAssembly>
  168. <assemblyIdentity name="DotNetOpenAuth.Core" publicKeyToken="2780ccd10d57b246" />
  169. <bindingRedirect oldVersion="1.0.0.0-4.0.0.0" newVersion="4.1.0.0" />
  170. </dependentAssembly>
  171. <dependentAssembly>
  172. <assemblyIdentity name="DotNetOpenAuth.AspNet" publicKeyToken="2780ccd10d57b246" />
  173. <bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0" />
  174. </dependentAssembly>
  175. <dependentAssembly>
  176. <assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
  177. <bindingRedirect oldVersion="0.0.0.0-4.1.1.2" newVersion="4.1.1.2" />
  178. </dependentAssembly>
  179. <dependentAssembly>
  180. <assemblyIdentity name="log4net" publicKeyToken="669e0ddf0bb1aa2a" culture="neutral" />
  181. <bindingRedirect oldVersion="0.0.0.0-1.2.13.0" newVersion="2.0.8.0" />
  182. </dependentAssembly>
  183. <dependentAssembly>
  184. <assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  185. <bindingRedirect oldVersion="0.0.0.0-4.1.1.0" newVersion="4.1.1.0" />
  186. </dependentAssembly>
  187. <dependentAssembly>
  188. <assemblyIdentity name="Microsoft.Owin.Security" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  189. <bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
  190. </dependentAssembly>
  191. <dependentAssembly>
  192. <assemblyIdentity name="Microsoft.AspNet.SignalR.Core" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  193. <bindingRedirect oldVersion="0.0.0.0-2.2.2.0" newVersion="2.2.2.0" />
  194. </dependentAssembly>
  195. <dependentAssembly>
  196. <assemblyIdentity name="System.Web.Cors" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  197. <bindingRedirect oldVersion="0.0.0.0-5.2.4.0" newVersion="5.2.4.0" />
  198. </dependentAssembly>
  199. <dependentAssembly>
  200. <assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  201. <bindingRedirect oldVersion="0.0.0.0-5.2.4.0" newVersion="5.2.4.0" />
  202. </dependentAssembly>
  203. <dependentAssembly>
  204. <assemblyIdentity name="System.Net.Http.Formatting" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  205. <bindingRedirect oldVersion="0.0.0.0-5.2.4.0" newVersion="5.2.4.0" />
  206. </dependentAssembly>
  207. <dependentAssembly>
  208. <assemblyIdentity name="System.IdentityModel.Tokens.Jwt" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  209. <bindingRedirect oldVersion="0.0.0.0-5.2.1.0" newVersion="5.2.1.0" />
  210. </dependentAssembly>
  211. <dependentAssembly>
  212. <assemblyIdentity name="Microsoft.IdentityModel.Protocols.OpenIdConnect" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  213. <bindingRedirect oldVersion="0.0.0.0-5.2.1.0" newVersion="5.2.1.0" />
  214. </dependentAssembly>
  215. <dependentAssembly>
  216. <assemblyIdentity name="Microsoft.IdentityModel.Tokens" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  217. <bindingRedirect oldVersion="0.0.0.0-5.2.1.0" newVersion="5.2.1.0" />
  218. </dependentAssembly>
  219. <dependentAssembly>
  220. <assemblyIdentity name="Microsoft.IdentityModel.Protocols" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  221. <bindingRedirect oldVersion="0.0.0.0-5.2.1.0" newVersion="5.2.1.0" />
  222. </dependentAssembly>
  223. <dependentAssembly>
  224. <assemblyIdentity name="System.Web.Razor" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  225. <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  226. </dependentAssembly>
  227. <dependentAssembly>
  228. <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
  229. <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  230. </dependentAssembly>
  231. <dependentAssembly>
  232. <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
  233. <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  234. </dependentAssembly>
  235. <dependentAssembly>
  236. <assemblyIdentity name="System.Web.WebPages.Razor" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  237. <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  238. </dependentAssembly>
  239. <dependentAssembly>
  240. <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
  241. <bindingRedirect oldVersion="1.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
  242. </dependentAssembly>
  243. <dependentAssembly>
  244. <assemblyIdentity name="Microsoft.OData.Client" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  245. <bindingRedirect oldVersion="0.0.0.0-6.13.0.0" newVersion="6.13.0.0" />
  246. </dependentAssembly>
  247. <dependentAssembly>
  248. <assemblyIdentity name="Microsoft.OData.Core" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  249. <bindingRedirect oldVersion="0.0.0.0-6.13.0.0" newVersion="6.13.0.0" />
  250. </dependentAssembly>
  251. </assemblyBinding>
  252. </runtime>
  253. <entityFramework>
  254. <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
  255. <parameters>
  256. <parameter value="v11.0" />
  257. </parameters>
  258. </defaultConnectionFactory>
  259. </entityFramework>
  260. </configuration>