]> mj.ucw.cz Git - eval.git/blob - submit/submitd.cf
Document various error reporting functions.
[eval.git] / submit / submitd.cf
1 # Configuration file for the submit server
2
3 include cf/library
4
5 SubmitD {
6
7 # Log file (optional)
8 LogFile                 log/submitd
9
10 # Port number
11 Port                    8888
12
13 # Maximum number of connections allowed
14 MaxConn                 60
15
16 # Time in seconds after which inactive connections are closed (0=none)
17 SessionTimeout          300
18
19 # Maximum size of a request
20 MaxRequestSize          4K
21
22 # Maximum size of an attachment (i.e., a submitted solution)
23 # This is a default, which can be overriden in task definitions.
24 MaxAttachSize           256K
25
26 # Maximum number of versions of a single task part a contestant is allowed
27 # to submit (0=unlimited)
28 MaxVersions             50
29
30 # Number of bits for the Diffie-Hellman key exchange
31 DHBits                  1024
32
33 # Certificate of our internal CA which is used to validate all contestants
34 CACert                  certs/ca-cert.pem
35
36 # The certificate (issued by our CA) and secret key for this server
37 ServerCert              certs/server-cert.pem
38 ServerKey               certs/server-key.pem
39
40 # Keep history of all submitted files in files of a given name prefix
41 # (formatted by strftime; default: no history kept)
42 History                 history/%H%M%S-
43
44 # Rules for accepting connections (first matching rule is used)
45 Access {
46         # IP address ranges matched by this rule
47         IP              127.0.0.1
48
49         # Administrator access allowed (does not do anything yet)
50         Admin           1
51
52         # Plain-text connections without any user authentication allowed
53         PlainText       0
54
55         # Maximum number of connections per IP address allowed
56         MaxConn         16
57 }
58
59 Access {
60         IP              195.113.18.125
61         IP              10.10.8.0/24
62         Admin           0
63         PlainText       0
64         MaxConn         2
65 }
66
67 # Trace TLS parameters
68 TraceTLS                1
69
70 # Trace command and their results
71 TraceCommands           2
72
73 }
74
75 # Competition tasks
76
77 Tasks {
78 #       Task plans
79         Task { Name world; OpenData 10; MaxSize 1M; }
80
81         Task            asteroids
82         Task            cards
83         Task            lines
84
85         Extension       c cpp pas
86         OpenDataExt     out
87 }
88
89 # Library configuration
90
91 # Need to put temporary files locally to make sure they are on the same device
92 # as the submission directories, so that we can rename the files to their final
93 # locations.
94 Tempfiles.Prefix        tmp/temp