Skip to content

Commit f3bf57d

Browse files
TD-5538: IUncluded web.config in the solution
1 parent 87111d8 commit f3bf57d

File tree

3 files changed

+60
-0
lines changed

3 files changed

+60
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<system.webServer>
4+
<modules runAllManagedModulesForAllRequests="false">
5+
<remove name="WebDAVModule" />
6+
</modules>
7+
<handlers>
8+
<remove name="aspNetCore" />
9+
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
10+
</handlers>
11+
<aspNetCore processPath="bin\x64\Debug\net8.0\LearningHub.Nhs.AdminUI.exe" arguments="" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="InProcess">
12+
<environmentVariables>
13+
<environmentVariable name="ASPNETCORE_ENVIRONMENT" value="Development" />
14+
<environmentVariable name="ASPNETCORE_HTTPS_PORT" value="443" />
15+
</environmentVariables>
16+
</aspNetCore>
17+
</system.webServer>
18+
</configuration>

LearningHub.Nhs.WebUI/web.config

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<location path="." inheritInChildApplications="false">
4+
<system.webServer>
5+
<httpProtocol>
6+
<customHeaders>
7+
<remove name="X-Powered-By" />
8+
<remove name="Server" />
9+
</customHeaders>
10+
</httpProtocol>
11+
<security>
12+
<requestFiltering removeServerHeader="true" />
13+
</security>
14+
<handlers>
15+
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
16+
</handlers>
17+
<aspNetCore processPath="dotnet" arguments=".\LearningHub.Nhs.WebUI.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="InProcess" />
18+
</system.webServer>
19+
</location>
20+
</configuration>
21+
<!--ProjectGuid: 044CCD77-8B9E-4888-BC20-9FD6E2AFE904-->
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<location path="." inheritInChildApplications="false">
4+
<system.webServer>
5+
<httpProtocol>
6+
<customHeaders>
7+
<remove name="X-Powered-By" />
8+
<remove name="Server" />
9+
</customHeaders>
10+
</httpProtocol>
11+
<security>
12+
<requestFiltering removeServerHeader="true" />
13+
</security>
14+
<handlers>
15+
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
16+
</handlers>
17+
<aspNetCore processPath="dotnet" arguments=".\LearningHub.Nhs.Api.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="InProcess" />
18+
</system.webServer>
19+
</location>
20+
</configuration>
21+
<!--ProjectGuid: 21F15E96-314F-4F39-822F-C2568CDC4A5A-->

0 commit comments

Comments
 (0)