-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmcc_wsgi.conf
More file actions
58 lines (42 loc) · 1.84 KB
/
Copy pathmcc_wsgi.conf
File metadata and controls
58 lines (42 loc) · 1.84 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
# This is the Apache config file for MCC.
# 6/23/2016 -- Etag security issue fix
WSGIApplicationGroup %{GLOBAL}
LoadModule wsgi_module "/usr/lib64/httpd/modules/mod_wsgi-py38.cpython-38m-x86_64-linux-gnu.so"
<IfModule !rewrite_module>
loadmodule rewrite_module modules/mod_rewrite.so
</IfModule>
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
FileETag MTime Size
<IfModule mod_headers.c>
Header always edit Set-Cookie (.*) "$1; HttpOnly; Secure."
</IfModule>
#Specify the threads and processes that will be assigned to the MCC app. Since large files take a long time to upload, it's probably best to keep the timeout fairly high.
WSGIDaemonProcess mcc processes=3 threads=5 inactivity-timeout=120
WSGIProcessGroup mcc
#Map the location of the checker.wsgi script to the desired external location. In this case it's mapped to http://localhost/mcc
WSGIScriptAlias / /var/www/html/mcc/checker.wsgi
#Set permissions for the MCC directory
<Directory /var/www/html/mcc>
Order allow,deny
Allow from all
LimitRequestBody 10737418240
</Directory>
<Directory /usr/share/httpd/icons>
Deny from all
</Directory>
TimeOut 600
# Set limit on file upload size (in bytes) when submitting directly to the REST API.
# This also limits the size of any uncompressed gzip and bzip files.
SetEnv ApiMaxFileSize ${api_maxfilesize}
# Set limit on file upload size (in bytes) when submitting via the Web frontend.
SetEnv UiMaxFileSize ${ui_maxfilesize}
# Set the URL to redirect to the MCC main page
SetEnv HomepageURL ${mcc_homepage}
# Set the location to write temporary files to
SetEnv TempFileLocation ${tempfilelocation}
# Assign the venue displayed on the MCC homepage
SetEnv Venue ${venue}
# Set the envvar the compliance-checker package looks for to override the default standard names table
SetEnv CF_STANDARD_NAME_TABLE ${cfStandardNameTable}