]> mj.ucw.cz Git - moe.git/blob - submit/config
1b00f46b005afa1d932f87cb1874a49a1c2c7a2e
[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 # Keep history of all submitted files in files of a given name prefix
35 # (formatted by strftime; default: no history kept)
36 History                 history/%H%M%S-
37
38 # Rules for accepting connections (first matching rule is used)
39 Access {
40         # IP address ranges matched by this rule
41         IP              127.0.0.1
42
43         # Administrator access allowed (does not do anything yet)
44         Admin           1
45
46         # Plain-text connections without any user authentication allowed
47         PlainText       0
48
49         # Maximum number of connections per IP address allowed
50         MaxConn         16
51 }
52
53 Access {
54         IP              195.113.18.125
55         IP              10.10.8.0/24
56         Admin           0
57         PlainText       0
58         MaxConn         2
59 }
60
61 # Trace TLS parameters
62 TraceTLS                1
63
64 # Trace command and their results
65 TraceCommands           1
66
67 }
68
69 # Competition tasks
70
71 Tasks {
72 #       Task plans
73         Task { Name world; OpenData 10; MaxSize 1M; }
74
75         Task            asteroids
76         Task            cards
77         Task            lines
78
79         Extension       c cpp pas
80         OpenDataExt     out
81 }
82
83 # Library configuration
84
85 # Need to put temporary files locally to make sure they are on the same device
86 # as the submission directories, so that we can rename the files to their final
87 # locations.
88 Tempfiles.Prefix        tmp/temp