-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcms.conf.sample
160 lines (105 loc) · 5.11 KB
/
cms.conf.sample
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
{
"_help": "There is no way to put comments in a JSON file; the",
"_help": "fields starting with '_' are meant to be comments.",
"_section": "System-wide configuration",
"temp_dir": "/tmp",
"_section": "AsyncLibrary",
"core_services":
{
"LogService": [["localhost", 29000]],
"ResourceService": [["localhost", 28000]],
"ScoringService": [["localhost", 28500]],
"Checker": [["localhost", 22000]],
"EvaluationService": [["localhost", 25000]],
"Worker": [["localhost", 26000], ["localhost", 26001]],
"ContestWebServer": [["localhost", 21000]],
"AdminWebServer": [["localhost", 21100]]
},
"other_services":
{
"TestFileCacher": [["localhost", 27501]]
},
"_section": "Database",
"_help": "Connection string for the database.",
"database": "postgresql+psycopg2://cmsuser:password@localhost/database",
"_help": "Whether SQLAlchemy prints DB queries on stdout.",
"database_debug": false,
"_help": "Whether to use two-phase commit.",
"twophase_commit": false,
"_section": "Worker",
"_help": "Don't delete the sandbox directory under /tmp/ when they",
"_help": "are not needed anymore. Warning: this can easily eat GB",
"_help": "of space very soon.",
"keep_sandbox": true,
"_section": "WebServers",
"_help": "This key is used to encode information that can be seen",
"_help": "by the user, namely cookies and auto-incremented",
"_help": "numbers. It should be changed for each",
"_help": "contest. Particularly, you should not use this example",
"_help": "for other than testing. You can easily create a key",
"_help": "calling cmscommon.Cryptographics.get_hex_random_key().",
"secret_key": "8e045a51e4b102ea803c06f92841a1fb",
"_help": "Whether Tornado prints debug information on stdout.",
"tornado_debug": false,
"_section": "ContestWebServer",
"_help": "Listening http address and ports for the CWS listed before in",
"_help": "core_services.",
"contest_listen_address": [""],
"contest_listen_port": [8888],
"_help": "Login cookie duration in seconds. The duration is refreshed",
"_help": "on every manual request.",
"cookie_duration": 10800,
"_help": "If CWSs write submissions to disk before storing them in",
"_help": "the DB, and where to save them. %s = DATA_DIR.",
"submit_local_copy": true,
"submit_local_copy_path": "%s/submissions/",
"_help": "If we allow users to log in only from their specified IP",
"_help": "address. Users with no IP set are anyway allowed to log in",
"_help": "from anywhere.",
"ip_lock": true,
"_help": "Whether hidden users are allowed to log in.",
"block_hidden_users": false,
"_help": "Whether the CWSs are behind a (trusted) proxy (e.g.,",
"_help": "nginx) that does load balancing. Used to know if it is",
"_help": "save to assume that the real source IP address is the",
"_help": "one listed in the request headers.",
"is_proxy_used": false,
"_help": "Maximum size of a submission in bytes.",
"max_submission_length": 100000,
"max_input_length": 5000000,
"_help": "STL documentation path in the system (exposed in CWS).",
"stl_path": "/usr/share/doc/stl-manual/html/",
"_help": "Whether questions and messages are enabled.",
"allow_communication": true,
"_section": "AdminWebServer",
"_help": "Listening http address and port for AdminWebServer.",
"admin_listen_address": "",
"admin_listen_port": 8889,
"_section": "ScoringService",
"_help": "Lists of addresses (protocol, ip, port), usernames and",
"_help": "passwords where the scores are to be sent.",
"rankings_address": [["http", "localhost", 8890]],
"rankings_username": ["usern4me"],
"rankings_password": ["passw0rd"],
"_section": "ResourceService",
"_help": "Format of the *beginning* of the command line that we",
"_help": "expect services are running from. Used to found their",
"_help": "associated processes - %s is replaced by the service",
"_help": "name (e.g. LogService) and %d by the shard number.",
"_help": "The first is a process_cmdline that may work by default",
"_help": "for CMS installed, while the second is for CMS run from",
"_help": "the repository. On some systems it may be necessary to",
"_help": "change the first item to contain 'python2' or even",
"_help": "'python2.7' instead of just 'python', and the second",
"_help": "one to contain '/usr/bin' instead of /usr/local/bin'.",
"process_cmdline": ["/usr/bin/python", "/usr/local/bin/cms%s", "%d"],
"_process_cmdline": ["/usr/bin/python", "./%s.py", "%d"],
"_section": "LogService",
"_help": "Whether to print ANSI color codes on stdout/logfiles, in",
"_help": "the local logs and in the remote ones.",
"color_shell_log": true,
"color_file_log": false,
"color_remote_shell_log": true,
"color_remote_file_log": true,
"_help": "This is the end of this file."
}