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.
107 lines
4.9 KiB
107 lines
4.9 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
有关如何配置 ASP.NET 应用程序的详细消息,请访问
|
|
http://go.microsoft.com/fwlink/?LinkId=169433
|
|
-->
|
|
<configuration>
|
|
<connectionStrings>
|
|
|
|
<!--MySql数据库连接-->
|
|
<add name="MySqlConnString" connectionString="server=47.93.253.225;port=3306;user=root;password=P@ssw0rd; database=smartcamp;SslMode=None;Allow User Variables=True;Charset=utf8;" />
|
|
<!--<add name="MySqlConnString" connectionString="server=192.168.31.12;port=4002;user=root;password=P@ssw0rd; database=smartcamp;SslMode=None;Allow User Variables=True;Charset=utf8;" />-->
|
|
|
|
</connectionStrings>
|
|
<appSettings>
|
|
<!--value即是程序集名称,也是命名空间名称-->
|
|
<!--<add key="DataAccess" value="FangYar.SQLServerDAL"/>-->
|
|
<add key="DataAccess" value="FangYar.OracleDAL" />
|
|
<add key="APP" value="0001" />
|
|
<!--系统初始密码-->
|
|
<add key="InitPassword" value="111" />
|
|
<!--允许上传的文件类型-->
|
|
<add key="UploadFileType" value="jpg,png,gif,bmp,zip,rar,7z,doc,docx,xls,xlsx,ppt,pptx,pdf,txt" />
|
|
<!--DB end-->
|
|
<!--提醒信息发送时间提前量-->
|
|
<add key="DateDiffer" value="10" />
|
|
<!--sql注入-->
|
|
<add key="StrKeyWord" value="select|insert|delete|from|drop table|update|truncate|exec master|netlocalgroup administrators|:|net user|or|and" />
|
|
<!--推送服务地址-->
|
|
<add key="PushUrl" value="http://192.168.3.79:8080/political/push/msg" />
|
|
</appSettings>
|
|
|
|
<!--
|
|
有关 web.config 更改的说明,请参见 http://go.microsoft.com/fwlink/?LinkId=235367。
|
|
|
|
可在 <httpRuntime> 标记上设置以下特性。
|
|
<system.Web>
|
|
<httpRuntime targetFramework="4.5" />
|
|
</system.Web>
|
|
-->
|
|
<system.web>
|
|
<authentication mode="Forms">
|
|
<forms name=".SessionCookie" loginUrl="~/login/index.html" defaultUrl="~/index.html" protection="All" timeout="30" path="/" requireSSL="false" slidingExpiration="true" enableCrossAppRedirects="false" cookieless="UseDeviceProfile" domain="" />
|
|
</authentication>
|
|
<compilation debug="true" targetFramework="4.5" />
|
|
<pages validateRequest="false" enableViewState="false" enableEventValidation="false" enableViewStateMac="false" controlRenderingCompatibilityVersion="4.0" />
|
|
<httpRuntime maxQueryStringLength="2097151" maxRequestLength="2048000000" requestValidationMode="2.0" />
|
|
<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:11992" stateNetworkTimeout="1440" timeout="1440" />
|
|
<hostingEnvironment shadowCopyBinAssemblies="false" />
|
|
</system.web>
|
|
<system.serviceModel>
|
|
<bindings>
|
|
<basicHttpBinding>
|
|
<binding name="cwsServiceSoapBinding" />
|
|
<binding name="cwsServiceSoapBinding1" />
|
|
</basicHttpBinding>
|
|
</bindings>
|
|
<client>
|
|
<endpoint address="http://192.168.0.122:6066/clouds/ws/r" binding="basicHttpBinding" bindingConfiguration="cwsServiceSoapBinding" contract="Camp_Fire2.ICws" name="cwsImplPort" />
|
|
<endpoint address="http://47.104.11.54:7277/clouds/ws/r" binding="basicHttpBinding" bindingConfiguration="cwsServiceSoapBinding1" contract="cwsService.ICws" name="cwsImplPort1" />
|
|
</client>
|
|
</system.serviceModel>
|
|
<system.webServer>
|
|
<security>
|
|
<requestFiltering>
|
|
<requestLimits maxAllowedContentLength="2147483647" maxQueryString="2147483647" />
|
|
</requestFiltering>
|
|
</security>
|
|
<defaultDocument>
|
|
<files>
|
|
<clear />
|
|
<add value="index.html" />
|
|
</files>
|
|
</defaultDocument>
|
|
<handlers>
|
|
<remove name="ExtensionlessUrlHandler-Integrated-4.0" />
|
|
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="" type="System.Web.Handlers.TransferRequestHandler" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode,runtimeVersionv4.0" responseBufferLimit="0" />
|
|
</handlers>
|
|
<rewrite>
|
|
<rules>
|
|
<rule name="nginx/(.*)">
|
|
<match url="nginx/(.*)" />
|
|
<action type="Rewrite" url="https://portal.anddrive.cn/{R:1}" />
|
|
</rule>
|
|
</rules>
|
|
</rewrite>
|
|
</system.webServer>
|
|
<runtime>
|
|
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30AD4FE6B2A6AEED" culture="neutral" />
|
|
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
|
|
</dependentAssembly>
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="Oracle.ManagedDataAccess" publicKeyToken="89b483f429c47342" culture="neutral" />
|
|
<bindingRedirect oldVersion="0.0.0.0-4.122.19.1" newVersion="4.122.19.1" />
|
|
</dependentAssembly>
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
|
|
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
|
|
</dependentAssembly>
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral" />
|
|
<bindingRedirect oldVersion="0.0.0.0-4.1.1.0" newVersion="4.1.1.0" />
|
|
</dependentAssembly>
|
|
</assemblyBinding>
|
|
</runtime>
|
|
</configuration>
|