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