Repository navigation
Expand file tree
/
Copy pathconfig.yaml.example
More file actions
84 lines (76 loc) · 2.07 KB
/
Copy pathconfig.yaml.example
File metadata and controls
84 lines (76 loc) · 2.07 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# 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
# COOKIE_SECURE: # unset derives it from DEBUG (secure when DEBUG is false)
#
# 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
# SYLLABUS:
# MAX_UPLOAD_SIZE: 20971520 # 20 MB
# ALLOWED_EXTENSIONS: [".pdf", ".docx"]
# MIN_MATCH_SCORE: 60
# MAX_ANALYSIS_CHARS: # unset derives it from LLM.NUM_CTX
# MAX_EXTRACTED_CHARS: 400000
# RECYCLE_RETENTION_DAYS: 30
# RECYCLE_MAX_FILES: 500
# REQUIRE_COURSE_SIGNAL: true
# REQUIRE_EVIDENCE: true
# LLM: # syllabus analysis and OCR model (env: LLM__PROVIDER, LLM__BASE_URL, LLM__API_KEY)
# PROVIDER: ollama # ollama or openai (OpenAI-compatible API)
# BASE_URL: "http://127.0.0.1:11434"
# API_KEY: # bearer token for hosted or proxied endpoints
# MODEL: "qwen3.8:latest"
# TIMEOUT: 600
# NUM_CTX: 32768
# MAX_PAGES: 30