forked from zkep/mygeektime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
54 lines (53 loc) · 1.47 KB
/
config.yml
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
server:
app_name: My Geek Time
run_mode: debug
http_addr: 0.0.0.0
http_port: 8090
jwt:
secret: mygeektime-secret
expires: 86400
i18n:
directory: i18n
default_lang: zh-CN
redis:
addr: 127.0.0.1:6379
password: 123456
pool_size: 20
max_open_conns: 10
database:
driver: sqlite # mysql|postgres|sqlite
source: mygeektime.db
# source: root:123456@tcp(127.0.0.1:3306)/mygeektime?charset=utf8&parseTime=True&loc=Local&timeout=1000ms
# source: host=127.0.0.1 user=postgres password=postgres dbname=mygeektime port=5432 sslmode=disable TimeZone=Asia/Shanghai
max_idle_conns: 10
max_open_conns: 10
email:
host: smtp.qq.com
port: 587
from:
user:
password:
storage: # mp4 or mp3 save folder
driver: local
directory: repo # Customize download folder, default to execute repo directory under the directory
bucket: object
host: http://127.0.0.1:8090 # Keep the port consistent with the http_port in the server
browser:
open_browser: true # Automatically open browser after service startup
site:
download: true
register:
type: name # email | name | none
email:
subject: "我的极客时间邮箱验证码"
body: "验证码: <b>%s</b> <br/><br/> <b>👏 扫下方微信二维码,欢迎加入技术交流群</b>"
attach: web/public/wechat.jpg
login:
type: name # email | name
guest:
name:
password:
play:
type: origin # origin | local
proxy_url:
- https://res001.geekbang.org