]> mj.ucw.cz Git - moe.git/blob - submit/config
02dcc543317fc3fdc8a923896d437963f4c2cc7c
[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 range 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         Admin           0
52         PlainText       0
53         MaxConn         2
54 }
55
56 Access {
57         IP              10.10.8.0/24
58         Admin           0
59         PlainText       0
60         MaxConn         2
61 }
62
63 # Trace TLS parameters
64 TraceTLS                1
65
66 # Trace command and their results
67 TraceCommands           1
68
69 }
70
71 # Competition tasks
72
73 Tasks {
74 #       Task plans
75         Task { Name world; OpenData 10; MaxSize 1M; }
76
77         Task            necklace
78         Task            nei
79         Task            town
80
81         Extension       c cpp pas
82         OpenDataExt     out
83 }
84
85 # Library configuration
86
87 # Need to put temporary files locally to make sure they are on the same device
88 # as the submission directories, so that we can rename the files to their final
89 # locations.
90 Tempfiles.Prefix        tmp/temp