-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.toml
More file actions
55 lines (48 loc) · 1.48 KB
/
example.toml
File metadata and controls
55 lines (48 loc) · 1.48 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
# Application logging configuration
[logger]
enable = true
level = "debug"
format = "compact"
# override_filter = "trace" # Uncomment to override filters
# Web server configuration
[server]
binding = "0.0.0.0"
port = 25150
host = "http://localhost"
# Mailer Configuration
# [mailer]
# host = "smtp.qiye.aliyun.com"
# port = 465
# from_email = ""
# to_email = "1677759063@qq.com"
# frontend_url = "http://localhost:25150/"
# auth.user = "" # Uncomment and add SMTP user
# auth.password = "" # Uncomment and add SMTP password
# Bilibili Configuration
[bilibili]
sessdata = "your_bilibili_sessdata_cookie"
bili_jct = "your_bilibili_bili_jct"
# Aliyun Configuration
[aliyun]
access_key_id = "your_aliyun_access_key_id"
access_key_secret = "your_aliyun_access_key_secret"
# Bucket to URL template mapping
# The {object_key} placeholder will be replaced with the actual object key
[aliyun.bucket_url_map]
prts-static = "https://static.prts.wiki/{object_key}"
ak-media = "https://media.prts.wiki/{object_key}"
# JWT Configuration (required for API authentication)
# Generate ES256 key pair (compatible with jsonwebtoken):
# openssl ecparam -genkey -name prime256v1 -noout -out private.pem
# Extract public key:
# openssl ec -in private.pem -pubout -out public.pem
[jwt]
private_key = """-----BEGIN EC PRIVATE KEY-----
YOUR_PRIVATE_KEY_HERE
-----END EC PRIVATE KEY-----"""
public_key = """-----BEGIN PUBLIC KEY-----
YOUR_PUBLIC_KEY_HERE
-----END PUBLIC KEY-----"""
# [sentry]
# dsn = ""
# traces_sample_rate = 1.0