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.

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