-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.toml
49 lines (41 loc) · 1.03 KB
/
default.toml
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
env = "test" # "test", "dev", "prod"
home = "http://www.yiwen.ltd"
[log]
# Log level: "trace", "debug", "info", "warn", "error"
level = "info"
[server]
# The address to bind to.
addr = ":8080"
# The maximum number of seconds to wait for graceful shutdown.
graceful_shutdown = 10
[cookie]
# session cookie
name_prefix = "YW"
domain = "yiwen.ltd"
secure = false
expires_in = 2592000 # 60*60*24*30 seconds
wechat_domain = ""
[auth_url]
default_host = "www.yiwen.ltd"
default_path = "/login/state"
allow_hosts = ["www.yiwen.ltd"]
[base]
userbase = "http://127.0.0.1:8080"
logbase = "http://127.0.0.1:8080"
walletbase = "http://127.0.0.1:8080"
[keys]
cwt_pub = "./keys/ed25519-token.pub"
oauth2_state = "./keys/hmac-state.key"
[providers]
[providers.github]
client_id = "YOUR_CLIENT_ID"
client_secret = "YOUR_CLIENT_SECRET"
redirect_uri = ""
scopes = ["SCOPE1", "SCOPE2"]
[oss]
bucket = "yiwenai"
endpoint = "oss-cn-hangzhou.aliyuncs.com"
access_key_id = ""
access_key_secret = ""
prefix = "dev/pic/"
url_base = "https://cdn.yiwen.pub/"