| | |
| | | </configSections> |
| | | <appSettings> |
| | | <!--数据库链接配置--> |
| | | <add key="DBServer" value="Data Source=.;Initial Catalog=vmes;Integrated Security=True" /> |
| | | <!--本地环境--> |
| | | <!--<add key="DBServer" value="Data Source=.;Initial Catalog=vmes;Integrated Security=True" />--> |
| | | <!--服务器环境--> |
| | | <add key="DBServer" value="Data Source=121.196.36.24;Initial Catalog=vmes;User ID=sa;Password=xkd@20220602"/> |
| | | <!--redis数据库链接配置ip--> |
| | | <add key="RedisConnIp" value="127.0.0.1" /> |
| | | <!--redis数据库链接配置端口号--> |
| | |
| | | <httpRuntime targetFramework="4.6.1" /> |
| | | </system.web> |
| | | <system.webServer> |
| | | <security> |
| | | <requestFiltering> |
| | | <!--主要是maxAllowedContentLength属性--> |
| | | <requestLimits maxAllowedContentLength="2147483647" maxQueryString="102400"/> |
| | | </requestFiltering> |
| | | </security> |
| | | <httpProtocol> |
| | | <customHeaders> |
| | | <add name="Access-Control-Allow-Origin" value="*"/> |
| | | <add name="Access-Control-Allow-Headers" value="Content-Type"/> |
| | | <add name="Access-Control-Allow-Methods" value="GET, POST, PUT, DELETE, OPTIONS"/> |
| | | </customHeaders> |
| | | </httpProtocol> |
| | | <modules runAllManagedModulesForAllRequests="true"/> |
| | | <validation validateIntegratedModeConfiguration="false"/> |
| | | <staticContent> |
| | | <remove fileExtension=".woff"/> |
| | | <remove fileExtension=".woff2"/> |
| | | <remove fileExtension=".json"/> |
| | | <mimeMap fileExtension=".woff" mimeType="application/x-font-woff"/> |
| | | <mimeMap fileExtension=".woff2" mimeType="application/font-woff2"/> |
| | | <mimeMap fileExtension=".json" mimeType="application/json"/> |
| | | </staticContent> |
| | | <handlers> |
| | | <remove name="ExtensionlessUrlHandler-Integrated-4.0" /> |
| | | <remove name="OPTIONSVerbHandler" /> |