-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.yaml.example
More file actions
63 lines (57 loc) · 1.34 KB
/
config.yaml.example
File metadata and controls
63 lines (57 loc) · 1.34 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
62
63
# Please copy this file to config.yaml and fill in
# corresponding fields.
# For non-secret, environment-specific configuration.
# Values here will override DEFAULTS in settings.py.
# Environment variables will override values here.
DEBUG: true
# SECRET_KEY: Use env
ALLOWED_HOSTS:
# - "backend.redacted.com"
- "localhost"
- "127.0.0.1"
CORS_ALLOWED_ORIGINS:
# - "https://frontend.redacted.com"
- "http://localhost:5173"
- "http://127.0.0.1:5173"
# SESSION:
# COOKIE_AGE: 2592000 # 30 days
# SAVE_EVERY_REQUEST: true
#
# WEB:
# COURSE:
# PAGE_SIZE: 5
# REVIEW:
# PAGE_SIZE: 10
# COMMENT_MIN_LENGTH : 30
# AUTH:
# OTP_TIMEOUT: 120
# TEMP_TOKEN_TIMEOUT: 600
# TOKEN_RATE_LIMIT: 5
# TOKEN_RATE_LIMIT_TIME: 600
# PASSWORD_LENGTH_MIN: 10
# PASSWORD_LENGTH_MAX: 32
# EMAIL_DOMAIN_NAME: "sjtu.edu.cn"
#
# DATABASE:
# URL: Use env
#
# REDIS:
# URL: Use env
# MAX_CONNECTIONS: 100
#
# TURNSTILE_SECRET_KEY: Use env
QUEST:
# BASE_URL: "https://wj.sjtu.edu.cn/api/v1/public/export"
SIGNUP:
# API_KEY: Use env
URL: "https://wj.sjtu.edu.cn/q/dummy0"
QUESTIONID: 10000000
LOGIN:
# API_KEY: Use env
URL: "https://wj.sjtu.edu.cn/q/dummy1"
QUESTIONID: 10000001
RESET_PASSWORD:
# API_KEY: Use env
URL: "https://wj.sjtu.edu.cn/q/dummy2"
QUESTIONID: 10000002
# AUTO_IMPORT_CRAWLED_DATA: true