]> mj.ucw.cz Git - moe.git/blob - submit/config
Separate per-language settings.
[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 # Maximum number of versions of a single task part a contestant is allowed
25 # to submit (0=unlimited)
26 MaxVersions             50
27
28 # Number of bits for the Diffie-Hellman key exchange
29 DHBits                  1024
30
31 # Certificate of our internal CA which is used to validate all contestants
32 CACert                  certs/ca-cert.pem
33
34 # The certificate (issued by our CA) and secret key for this server
35 ServerCert              certs/server-cert.pem
36 ServerKey               certs/server-key.pem
37
38 # Keep history of all submitted files in files of a given name prefix
39 # (formatted by strftime; default: no history kept)
40 History                 history/%H%M%S-
41
42 # Rules for accepting connections (first matching rule is used)
43 Access {
44         # IP address ranges matched by this rule
45         IP              127.0.0.1
46
47         # Administrator access allowed (does not do anything yet)
48         Admin           1
49
50         # Plain-text connections without any user authentication allowed
51         PlainText       0
52
53         # Maximum number of connections per IP address allowed
54         MaxConn         16
55 }
56
57 Access {
58         IP              195.113.18.125
59         IP              10.10.8.0/24
60         Admin           0
61         PlainText       0
62         MaxConn         2
63 }
64
65 # Trace TLS parameters
66 TraceTLS                1
67
68 # Trace command and their results
69 TraceCommands           2
70
71 }
72
73 # Competition tasks
74
75 Tasks {
76 #       Task plans
77         Task { Name world; OpenData 10; MaxSize 1M; }
78
79         Task            asteroids
80         Task            cards
81         Task            lines
82
83         Extension       c cpp pas
84         OpenDataExt     out
85 }
86
87 # Library configuration
88
89 # Need to put temporary files locally to make sure they are on the same device
90 # as the submission directories, so that we can rename the files to their final
91 # locations.
92 Tempfiles.Prefix        tmp/temp