-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathweb.config
More file actions
58 lines (52 loc) · 2.01 KB
/
web.config
File metadata and controls
58 lines (52 loc) · 2.01 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
58
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<!-- Static content MIME types for media files -->
<staticContent>
<remove fileExtension=".jpg" />
<remove fileExtension=".jpeg" />
<remove fileExtension=".png" />
<mimeMap fileExtension=".jpg" mimeType="image/jpeg" />
<mimeMap fileExtension=".jpeg" mimeType="image/jpeg" />
<mimeMap fileExtension=".png" mimeType="image/png" />
</staticContent>
<handlers>
<remove name="StaticFile" />
<!-- Handler for media files from C:\media -->
<add name="MediaHandler"
path="media/*"
verb="GET,HEAD"
modules="StaticFileModule"
resourceType="Either"
requireAccess="Read" />
<add name="PythonFastCGI"
path="*"
verb="GET,HEAD,POST,PUT,DELETE,PATCH"
modules="FastCgiModule"
scriptProcessor="C:\IOLGenv2_BackEnd\.venv\Scripts\python.exe|C:\IOLGenv2_BackEnd\.venv\Lib\site-packages\wfastcgi.py"
resourceType="Unspecified"
requireAccess="Script" />
</handlers>
<fastCgi>
<application
fullPath="C:\IOLGenv2_BackEnd\.venv\Scripts\python.exe"
arguments="C:\IOLGenv2_BackEnd\.venv\Lib\site-packages\wfastcgi.py">
<environmentVariables>
<environmentVariable name="DJANGO_SETTINGS_MODULE" value="IOLGenv2_BackEnd.settings" />
<environmentVariable name="PYTHONPATH" value="C:\IOLGenv2_BackEnd" />
<environmentVariable name="DJANGO_ENV" value="production" />
<environmentVariable name="WSGI_HANDLER" value="django.core.wsgi.get_wsgi_application()" />
</environmentVariables>
</application>
</fastCgi>
<!-- Increase upload size to 50MB -->
<security>
<requestFiltering>
<requestLimits
maxAllowedContentLength="52428800"
maxQueryString="8192"
maxUrl="16384" />
</requestFiltering>
</security>
</system.webServer>
</configuration>