| @ -0,0 +1,156 @@ | |||
| <?xml version="1.0"?> | |||
| <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"> | |||
| <configSections> | |||
| <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" /> | |||
| </configSections> | |||
| <appSettings> | |||
| <add key="aspnet:MaxHttpCollectionKeys" value="50000"/> | |||
| <!-- | |||
| #=============================================================================== | |||
| # 网上支付平台系统配置段 - 生产环境 - 请勿更改 | |||
| #=============================================================================== | |||
| #网上支付平台通讯方式(http / https) | |||
| --> | |||
| <add key="TrustPayConnectMethod" value="https" /> | |||
| <!--#网上支付平台服务器名--> | |||
| <add key="TrustPayServerName" value="pay.abchina.com" /> | |||
| <!--#网上支付平台交易端口--> | |||
| <add key="TrustPayServerPort" value="443" /> | |||
| <!--#网上支付平台接口特性--> | |||
| <add key="TrustPayNewLine" value="2" /> | |||
| <!--#网上支付平台交易网址--> | |||
| <add key="TrustPayTrxURL" value="/ebusnew/trustpay/ReceiveMerchantTrxReqServlet" /> | |||
| <!--#商户通过浏览器提交网上支付平台交易网址--> | |||
| <add key="TrustPayIETrxURL" value="https://pay.abchina.com/ebus/ReceiveMerchantIERequestServlet" /> | |||
| <!--#代理配置信息,商户如果通过代理地址访问银行支付平台的需配置--> | |||
| <add key="ProxyIP" value="" /> | |||
| <add key="ProxyPort" value="" /> | |||
| <!-- | |||
| #========================================================================================== | |||
| # 网上支付平台系统配置段 - 生产环境 - 更改证书存放路径,使其和本地存放路径相匹配(绝对路径) | |||
| #========================================================================================== | |||
| #网上支付平台证书 | |||
| --> | |||
| <add key="TrustPayCertFile" value="C:\Program Files (x86)\BWP\TrustPay\cert\TrustPay.cer" /> | |||
| <!--#农行根证书文件--> | |||
| <add key="TrustStoreFile" value="C:\Program Files (x86)\BWP\TrustPay\cert\abc.truststore" /> | |||
| <!--#农行根证书文件密码--> | |||
| <add key="TrustStorePassword" value="changeit" /> | |||
| <!-- | |||
| #============================================================================== | |||
| # 商户资料段 (请更改) | |||
| #============================================================================== | |||
| --> | |||
| <!--#商户代码--> | |||
| <add key="MerchantID" value="103883815000003" /> | |||
| <!--<add key="MerchantID" value="103881099990013"/>--> | |||
| <!--#商户通过浏览器提交网上支付平台交易失败网址--> | |||
| <add key="MerchantErrorURL" value="http://localhost:3226/WebSite/MerchantIEFailure.aspx" /> | |||
| <!-- | |||
| #============================================================================== | |||
| # 商户系统配置段 (请更改) | |||
| #============================================================================== | |||
| #交易日志开关(true: 表示写日志, false: 表示不写日志) | |||
| #如果为true,需要填写 #交易日志文件存放位置 | |||
| --> | |||
| <add key="EnableLog" value="true" /> | |||
| <add key="LogPath" value="C:\Program Files (x86)\BWP\TrustPay\Logs" /> | |||
| <!-- | |||
| #证书储存媒体 | |||
| #0: File | |||
| #1: Hardware | |||
| --> | |||
| <add key="MerchantKeyStoreType" value="0" /> | |||
| <!--#商户证书储存目录档名(当KeyStoreType=0时,必输设定)--> | |||
| <add key="MerchantCertFile" value="C:\Program Files (x86)\BWP\TrustPay\cert\wfzhengshu.pfx" /> | |||
| <!--#商户私钥加密密码(当KeyStoreType0时,必输设定)--> | |||
| <add key="MerchantCertPassword" value="Wf654321" /> | |||
| </appSettings> | |||
| <!-- | |||
| #=============================================================================== | |||
| # 网上支付平台日志配置段 - 生产环境 - 请更改交易日志文件存放目录 | |||
| #=============================================================================== | |||
| --> | |||
| <!--#交易日志文件存放位置--> | |||
| <!-- --> | |||
| <log4net> | |||
| <appender name="LogFileAppender" type="log4net.Appender.FileAppender"> | |||
| <file value="C:\Program Files (x86)\BWP\TrustPay\EC2018.logs" /> | |||
| <lockingModel type="log4net.Appender.FileAppender+MinimalLock" /> | |||
| <appendToFile value="true" /> | |||
| <rollingStyle value="Date" /> | |||
| <datePattern value="yyyy-MM-dd HH:mm:ss" /> | |||
| <layout type="log4net.Layout.PatternLayout"> | |||
| <footer value="by TrustPayClient" /> | |||
| <conversionPattern value="%date [%thread] %-5level %logger [%ndc] <%property{auth}> - %message%newline" /> | |||
| </layout> | |||
| </appender> | |||
| <root> | |||
| <appender-ref ref="LogFileAppender" /> | |||
| </root> | |||
| </log4net> | |||
| <system.web> | |||
| <httpRuntime executionTimeout = "36000" requestValidationMode="2.0" maxRequestLength="51200" enableVersionHeader="false"/> | |||
| <customErrors mode="Off"/> | |||
| <compilation debug="false"/> | |||
| <sessionState mode="Off"/> | |||
| <pages validateRequest="false" controlRenderingCompatibilityVersion="3.5"/> | |||
| <httpModules> | |||
| <add name="WPF" type="TSingSoft.WebPluginFramework.WpfHttpModule, Wpf.System.Web"/> | |||
| </httpModules> | |||
| <globalization requestEncoding="utf-8" responseEncoding="utf-8"/> | |||
| <authentication mode="None"/> | |||
| <authorization> | |||
| <deny users="?"/> | |||
| </authorization> | |||
| <httpHandlers> | |||
| <add path="*.aspx" verb="*" validate="false" type="TSingSoft.WebPluginFramework.Pages.WpfPageFactory, Wpf.System.Web"/> | |||
| <add path="*/O/*/*.svc" verb="*" validate="false" type="TSingSoft.WebPluginFramework.Pages.SvcFactory, Wpf.System.Web"/> | |||
| </httpHandlers> | |||
| </system.web> | |||
| <!--<system.webServer>节点用以供IIS7集成模式使用,即打开此节点就可以运行在IIS7集成模式下--> | |||
| <!--<system.webServer> | |||
| <modules> | |||
| <add name="WPF" type="TSingSoft.WebPluginFramework.WpfHttpModule, Wpf.System.Web"/> | |||
| </modules> | |||
| <handlers> | |||
| <add path="*.aspx" verb="*" name="WpfPageFactory" type="TSingSoft.WebPluginFramework.Pages.WpfPageFactory, Wpf.System.Web"/> | |||
| </handlers> | |||
| <validation validateIntegratedModeConfiguration="false"/> | |||
| </system.webServer>--> | |||
| <system.serviceModel> | |||
| <behaviors> | |||
| <serviceBehaviors> | |||
| <behavior name=""> | |||
| <serviceMetadata httpGetEnabled="true" /> | |||
| <serviceDebug includeExceptionDetailInFaults="true" /> | |||
| </behavior> | |||
| </serviceBehaviors> | |||
| </behaviors> | |||
| <serviceHostingEnvironment aspNetCompatibilityEnabled="false" multipleSiteBindingsEnabled="true"/> | |||
| </system.serviceModel> | |||
| <system.webServer> | |||
| <httpProtocol> | |||
| <customHeaders> | |||
| <remove name="X-Powered-By"/> | |||
| </customHeaders> | |||
| </httpProtocol> | |||
| <security> | |||
| <requestFiltering> | |||
| <!--IIS7下生效,默认30M,如果需要上传更大文件,修改此设置--> | |||
| <requestLimits maxAllowedContentLength="51200000" /> | |||
| </requestFiltering> | |||
| </security> | |||
| </system.webServer> | |||
| <location path="Tools/ReceiveEntityAttachment.aspx"> | |||
| <system.web> | |||
| <httpRuntime maxRequestLength="51200"/> | |||
| </system.web> | |||
| </location> | |||
| </configuration> | |||