-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathconfig.template.yml
More file actions
61 lines (58 loc) · 1.06 KB
/
config.template.yml
File metadata and controls
61 lines (58 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Codgic-api Configuration
# Version 0.0.0 - Unreleased!
# OJ
oj:
name: Codgic
timezone: Asia/Shanghai
policy:
access:
need_login: false
signup:
need_confirmation: false
# need_verify_email: false
profile:
nickname:
min_length:
max_length: 30
password:
min_length: 8
max_length:
# uppercase:
# lowercase:
# special:
# digit:
username:
min_length:
max_length: 30
content:
common_user_can_post: true
common_user_post_need_confirmation: false
default:
page:
contest: 50
group: 20
group_member: 20
problem: 50
user: 20
contest:
# duration: 7200
problem:
first_problem_id: 1000
memory_limit: 256 # MB
time_limit: 1000 # ms
# API
api:
port: 8080
jwt:
debug: false
expire_time: 1h
secret: FuckZh@ngKeW@terQueen
# Database
database:
host: localhost
port: 3306
database: codgic
username: codgic
password: YOURPASSWORD
type: mysql
logging: true