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
# All files served whose mime type cannot be guessed will be served as this
13
default_mimetype = "text/plain"
15
# Mapping mime types to interpreters
16
# Interpreters are built-in to IVLE, and identified by their string names.
17
# Available interpreters are:
19
# Runs any executable file as a CGI program
21
# Runs a Python script as a CGI program
23
# Runs a Python Server Page (psp) file
26
"text/x-python" : "cgi-python",
27
"text/x-python-server-page" : "python-server-page",
30
# Non-interpreted files fall back to either being served directly, or
31
# returning a 403 Forbidden.
32
# This decision can either be made with a blacklist or a whitelist.
34
blacklist_served_filetypes = False
36
# blacklist_served_filetypes = False causes IVLE to disallow all filetypes by
37
# default, and use served_filetypes_whitelist for exceptions.
38
# blacklist_served_filetypes = True causes IVLE to allow all filetypes by
39
# default, and use served_filetypes_blacklist for exceptions.
41
# The whitelist/blacklist dictionaries are sets of mime types to allow or
42
# disallow respectively.
44
served_filetypes_whitelist = set([
45
"application/ecmascript",
46
"application/octet-stream",
48
"application/postscript",
49
"application/javascript",
51
"application/xhtml+xml",
71
served_filetypes_blacklist = set([
72
"application/x-executable",