-
Notifications
You must be signed in to change notification settings - Fork 1
/
server_conf.py
98 lines (85 loc) · 4.12 KB
/
server_conf.py
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# This software is licensed under a BSD license; see the LICENSE file for details.
# Optionally define the following variable to set the working
# directory of the server. You can also define the environment
# variable of the same name (the value of the environment variable
# takes precedence over the value of this variable).
#
# IMPORTANT: A number of other _DIR options will be set relative
# to this path, unless you set them to absolute paths.
IBEX_WORKING_DIR = "../"
# Options are "toy" or "cgi" (case-sensitive); the value "paste"
# is equivalent to "toy" and is supported for backwards compatibility.
#
# If "toy", the server will run in stand-alone mode.
# If "cgi", the server will run as a CGI process.
#
# Note that the value of this variable can be overridden by the
# "-m" command line option.
SERVER_MODE = "toy"
# The port the server will run on if running in stand-alone
# mode.
PORT = 3000
# The name of the directory where result files will be stored.
# The directory will automatically be created if it doesn't exist
# (but if it is itself contained within a non-existent directory,
# this won't happen).
# ***** Relative to IBEX_WORKING_DIR unless absolute path. *****
RESULT_FILES_DIR = "results"
# The name of the file where results will be stored (within
# the RESULT_FILES_DIR directory).
RESULT_FILE_NAME = "results"
# The name of the file where raw results will be stored (within
# the RESULT_FILES_DIR directory).
RAW_RESULT_FILE_NAME = "raw_results"
# The name of the directory where server state will be stored.
# ***** Relative to IBEX_WORKING_DIR unless absolute path. *****
SERVER_STATE_DIR = "server_state"
# Should each set of results be preceeded by a header in the results file? (The
# headers gives some info about the results, e.g. the browser used).
INCLUDE_HEADERS_IN_RESULTS_FILE = True
# Should the server insert comments in the results file documenting the values
# in each column?
INCLUDE_COMMENTS_IN_RESULTS_FILE = True
# The name of the directory where Javascript includes are stored.
# ***** Relative to IBEX_WORKING_DIR unless absolute path. *****
JS_INCLUDES_DIR = "js_includes"
# The name of the directory where CSS includes are stored.
# ***** Relative to IBEX_WORKING_DIR unless absolute path. *****
CSS_INCLUDES_DIR = "css_includes"
# The name of the directory where data files are stored.
# ***** Relative to IBEX_WORKING_DIR unless absolute path. *****
DATA_INCLUDES_DIR = "data_includes"
# The name of the directory where html chunks are stored.
# ***** Relative to IBEX_WORKING_DIR unless absolute path. *****
CHUNK_INCLUDES_DIR = "chunk_includes"
# ***** Relative to IBEX_WORKING_DIR unless absolute path. *****
OTHER_INCLUDES_DIR = "other_includes"
# The name of the directory where various caches are kept.
# ***** Relative to IBEX_WORKING_DIR unless absolute path. *****
CACHE_DIR = "cache"
# Define this variable to set the directory containing static
# HTML/JavaScript files (e.g. 'experiment.html').
# ***** Applicable only when server mode is "toy". *****
# ***** Relative to IBEX_WORKING_DIR unless absolute path. *****
STATIC_FILES_DIR = "www"
# These variables specify which of the files in the js_includes,
# data_includes and css_includes directories should actually be included.
# The value of each variable should be a list whose first element
# is either the string "block" or the string "allow". The remainder
# of the list gives the filenames of those js/css files which should
# be allowed/blocked.
JS_INCLUDES_LIST = ["block"] # Block nothing (i.e. allow everything).
CSS_INCLUDES_LIST = ["block"] # Ditto.
DATA_INCLUDES_LIST = ["block"] # Ditto.
# If this is set to True, JavaScript files are "minified" before being
# served up. This saves on bandwidth, but makes it much harder to
# debug JavaScript errors.
MINIFY_JS = False
# **********
# Most users sould ignore the following options and skip to those
# in the rest of the file. See documentation. Note that if one
# of these options is defined, all must be defined.
# **********
# EXTERNAL_CONFIG_URL = "http:///foo.net:9854/conf" # "file:///foo/bar/conf"
# EXTERNAL_CONFIG_PASS_PARAMS = True
# EXTERNAL_CONFIG_METHOD = "GET" # 'POST' is currently not implemented.