-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yaml
78 lines (75 loc) · 1.42 KB
/
config.yaml
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
mode: "debug"
server_name: "Atom文件系统"
http:
host: "localhost"
port: "6500"
ssl: false
cert_path: ""
key_path: ""
auto_tls:
enable: false
cache_dir: ""
hosts:
- ""
database:
engine: "postgres"
host: "localhost"
port: 5432
dbname: ""
user: ""
password: ""
sslmode: "disable"
user_service:
jwt:
signing_key: "atomic-file-service"
expire: 2h
verification_code:
email:
type_name: "email_register"
expiration: 2h
mail_templ_name: "email_register"
reset_password:
type_name: "reset_password"
expiration: 2h
mail_templ_name: "reset_password"
email_template:
base_path: "/mailer/html"
items:
-
subject: "邮箱验证码"
content_type: "text/html"
alias: "email_register"
filename: "email_verification_code.tpl"
-
subject: "修改密码验证"
content_type: "text/html"
alias: "reset_password"
filename: "reset_password_verification_code.tpl"
file_service:
basepath: "files"
cache:
engine: "redis"
locations:
- "redis://localhost:6379/0"
key_prefix: ""
max_cache_size: 0
email:
host: "smtp.live.com"
port: 587
username: ""
password: ""
ssl: false
cert_path: ""
key_path: ""
local_name: ""
prometheus:
enable: false
gateway_addr: ""
interval_sec: 0
log:
level: "debug"
encoding: "console"
output_paths:
- stdout
error_output_paths:
- stderr