From a51d070d364b0da8e5f8ea9203a6e50c8b4c0af3 Mon Sep 17 00:00:00 2001 From: wanglizhong <wlz> Date: 星期三, 09 七月 2025 22:06:34 +0800 Subject: [PATCH] feat(派单模块): 添加敏感信息隐藏功能 --- API/web.config | 74 ++++++++++++++++++++++-------------- 1 files changed, 45 insertions(+), 29 deletions(-) diff --git a/API/web.config b/API/web.config index 3fa2e59..0756460 100644 --- a/API/web.config +++ b/API/web.config @@ -1,29 +1,45 @@ -<?xml version="1.0" encoding="UTF-8"?> -<configuration> - <system.webServer> - <defaultDocument> - <files> - <remove value="Default.htm" /> - <remove value="Default.asp" /> - <remove value="index.htm" /> - <remove value="index.html" /> - <remove value="iisstart.htm" /> - <remove value="default.aspx" /> - <add value="index.php" /> - <add value="index.asp" /> - <add value="index.gds" /> - </files> - </defaultDocument> - <httpErrors errorMode="Detailed" /> - <handlers> - <add name="gds" path="*.gds" verb="GET,HEAD,POST" modules="IsapiModule" scriptProcessor="%windir%\system32\inetsrv\asp.dll" resourceType="File" requireAccess="Script" preCondition="bitness64" /> - </handlers> - <directoryBrowse enabled="false" /> - <httpProtocol> - <customHeaders> - <add name="Access-Control-Allow-Headers" value="Content-Type, api_key, Authorization" /> - <add name="Access-Control-Allow-Origin" value="*" /> - </customHeaders> - </httpProtocol> - </system.webServer> -</configuration> +<?xml version="1.0" encoding="UTF-8"?> +<configuration> + <system.web> + <compilation debug="true" targetFramework="4.7.2" /> + <httpRuntime targetFramework="4.7.2" /> + <authentication mode="Windows" /> + <identity impersonate="true" /> + </system.web> + <system.webServer> + <fastCgi> + <application fullPath="D:\project\鎬ユ晳杞繍\code\php\php-cgi.exe" monitorChangesTo="php.ini" activityTimeout="600" requestTimeout="600" instanceMaxRequests="10000"> + <environmentVariables> + <environmentVariable name="PHP_FCGI_MAX_REQUESTS" value="10000" /> + <environmentVariable name="PHPRC" value="D:\project\鎬ユ晳杞繍\code\php" /> + </environmentVariables> + </application> + </fastCgi> + <defaultDocument> + <files> + <remove value="Default.htm" /> + <remove value="Default.asp" /> + <remove value="index.htm" /> + <remove value="index.html" /> + <remove value="iisstart.htm" /> + <remove value="default.aspx" /> + <add value="index.php" /> + <add value="index.asp" /> + <add value="index.gds" /> + </files> + </defaultDocument> + <httpErrors errorMode="Detailed" /> + <handlers> + <remove name="php" /> + <add name="php" path="*.php" verb="*" modules="FastCgiModule" scriptProcessor="D:\project\鎬ユ晳杞繍\code\php\php-cgi.exe" resourceType="File" requireAccess="Script" /> + <add name="gds" path="*.gds" verb="GET,HEAD,POST" modules="IsapiModule" scriptProcessor="%windir%\system32\inetsrv\asp.dll" resourceType="File" requireAccess="Script" preCondition="bitness64" /> + </handlers> + <directoryBrowse enabled="false" /> + <httpProtocol> + <customHeaders> + <add name="Access-Control-Allow-Headers" value="Content-Type, api_key, Authorization" /> + <add name="Access-Control-Allow-Origin" value="*" /> + </customHeaders> + </httpProtocol> + </system.webServer> +</configuration> -- Gitblit v1.9.1