-
Notifications
You must be signed in to change notification settings - Fork 7
/
config.yaml
105 lines (86 loc) · 1.59 KB
/
config.yaml
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
DEBUG: true
SECRET_KEY: 0xd9943!@$titan!#$%^
# mysql
DATABASE_URI: mysql://root:@localhost/titan
# redis
REDIS_HOST: 127.0.0.1
REDIS_PORT: 6379
REDIS_DB: 0
REDIS_PASSWORD: ''
REDIS_POOL_SIZE: 100
# sessions
SESSION_HOST: 127.0.0.1
SESSION_PORT: 6379
SESSION_DB: 0
SESSION_PASSWORD: ''
SESSION_POOL_SIZE: 1000
SESSION_KEY: tid
SESSION_EXPIRE: 2592000
SESSION_KEY_TEMPLE: session:%s
SESSION_ENVIRON_KEY: titan.session
SESSION_COOKIE_DOMAIN: 127.0.0.1
SESSION_SALT: 0xd9943!@$%titan!#$%^
# cache
CACHE_HOST: 127.0.0.1
CACHE_PORT: 6379
CACHE_DB: 0
CACHE_PASSWORD: ''
CACHE_POOL_SIZE: 1000
CACHE_PREFIX: 'titan:cache:'
CACHE_DEFAULT_TIMEOUT: 300
# cookies
COOKIE_MAX_AGE: 2592000
COOKIE_DOMAIN: 127.0.0.1
# upload files
UPLOAD_DIR_PATH: 'permdir/.uploads'
MAX_CONTENT_LENGTH: 3145728
ALLOWED_EXTENSIONS:
- png
- jpg
- jpeg
- gif
# token
TOKEN_LENGTH: 6
# mail
SMTP_SERVER: 'smtp.qq.com'
SMTP_USER: 'root'
SMTP_PASSWORD: '123456'
# stub
VERIFY_STUB_EXPIRE: 1800
FORGET_STUB_EXPIRE: 1800
# gravatar
GRAVATAR_BASE_URL: http://www.gravatar.com/avatar/
GRAVATAR_EXTRA: ''
# repos define
PACKAGE_COST:
1: 0
2: 0
3: 0
4: 0
5: 0
6: 0
7: 0
REPOS_LIMIT:
1: 5,
2: 100,
3: 150,
4: 999,
5: 999,
6: 999,
7: 999,
MEMBERS_LIMIT:
1: 5,
2: 30,
3: 60,
4: 100,
5: 150,
6: 200,
7: 999
# repos
COMMITS_PER_PAGE: 10
REVISIONS_PER_PAGE: 5
# JAGARE NODES:
JAGARE_NODES:
- http://127.0.0.1:8000
#TODO 因为现在还在本地测试,所以直接用文件路径
#MARIA_STORE_PATH: /Users/CMGS/Documents/Workplace/experiment/Jagare/permdir/