1
# IVLE Configuration File
3
# Configuration for Server ('serve') app.
4
# These should not need to be modified by admins unless new languages become
7
# Note that this configuration file uses mime types to identify files.
8
# conf/mimetypes.py may need to be modified to configure mime types outside of
9
# the system's default mime types.
11
# Mapping mime types to interpreters
12
# Interpreters are built-in to IVLE, and identified by their string names.
13
# Available interpreters are:
15
# Runs any executable file as a CGI program
17
# Runs a Python script as a CGI program
19
# Runs a Python Server Page (psp) file
22
"text/x-python" : "cgi-python",
23
"text/x-python-server-page" : "python-server-page",
26
# Non-interpreted files fall back to either being served directly, or
27
# returning a 403 Forbidden.
28
# This decision can either be made with a blacklist or a whitelist.
30
blacklist_served_filetypes = False
32
# blacklist_served_filetypes = False causes IVLE to disallow all filetypes by
33
# default, and use served_filetypes_whitelist for exceptions.
34
# blacklist_served_filetypes = True causes IVLE to allow all filetypes by
35
# default, and use served_filetypes_blacklist for exceptions.
37
# The whitelist/blacklist dictionaries are sets of mime types to allow or
38
# disallow respectively.
40
served_filetypes_whitelist = set([
41
"application/ecmascript",
42
"application/octet-stream",
44
"application/postscript",
45
"application/javascript",
47
"application/xhtml+xml",
68
served_filetypes_blacklist = set([
69
"application/x-executable",