-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsample-web.config
More file actions
57 lines (51 loc) · 2.3 KB
/
sample-web.config
File metadata and controls
57 lines (51 loc) · 2.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<location path="." inheritInChildApplications="false">
<system.webServer>
<!-- Remove conflicting modules -->
<modules>
<remove name="WebDAVModule" />
</modules>
<!-- Disable static and dynamic compression to prevent binary file corruption -->
<urlCompression doStaticCompression="false" doDynamicCompression="false" />
<!-- ASP.NET Core handler configuration -->
<handlers>
<remove name="php-8.2.6" />
<remove name="PHP_via_FastCGI" />
<remove name="PHP-FastCGI" />
<remove name="phpCGI" />
<remove name="PHP80_via_FastCGI" />
<remove name="PHP81_via_FastCGI" />
<remove name="PHP82_via_FastCGI" />
<remove name="PHP83_via_FastCGI" />
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" requireAccess="Script" />
</handlers>
<!-- CORRECT: Use Infostacker.dll, not ShareAPI.dll -->
<aspNetCore processPath="dotnet"
arguments=".\Infostacker.dll"
stdoutLogEnabled="false"
stdoutLogFile=".\logs\stdout"
hostingModel="inprocess" />
<!-- CORS configuration -->
<cors enabled="true" failUnlistedOrigins="true">
<add origin="*">
<allowMethods>
<add method="GET" />
<add method="POST" />
<add method="PUT" />
<add method="DELETE" />
</allowMethods>
</add>
</cors>
<!-- ADDED: Request filtering for file uploads -->
<security>
<requestFiltering>
<!-- Allow requests up to 100MB (52428800 bytes) -->
<requestLimits maxAllowedContentLength="104857600" />
</requestFiltering>
</security>
<!-- ADDED: Detailed error information -->
<httpErrors errorMode="Detailed" />
</system.webServer>
</location>
</configuration>