potato/config.yaml.example

47 lines
951 B
Plaintext
Raw Normal View History

2021-03-23 00:55:26 +08:00
app:
2021-06-13 22:03:43 +08:00
name: 'potato'
version: '1.0.0'
2021-06-10 22:41:58 +08:00
jwt_secret: 'viletyy'
2021-06-10 19:03:15 +08:00
jwt_expire: '7200'
2021-03-23 00:55:26 +08:00
run_mode: 'debug'
2021-06-14 21:15:55 +08:00
default_context_timeout: 60
2021-06-10 19:03:15 +08:00
page_size: 10
2021-06-11 18:04:58 +08:00
upload_save_path: 'tmp/uploads'
upload_server_path: '/static'
upload_image_max_size: 5 # MB
upload_image_allow_exts: ['.jpg','.jpeg','.png']
2021-03-23 00:55:26 +08:00
server:
http_port: 8000
read_timeout: 60
write_timeout: 60
2021-06-12 23:14:02 +08:00
email:
host: 'smtp.163.com'
port: 465
username: 'ceshi'
password: '123456'
is_ssl: true
from: 'yystopf@163.com'
to: ['yystopf@163.com']
2021-03-23 00:55:26 +08:00
database:
type: 'postgresql'
user: 'root'
password: '123456'
host: '127.0.0.1'
port: 5432
name: 'potato'
table_prefix: 'p_'
redis:
host: '127.0.0.1'
port: '6379'
password: ''
db: 1
zap:
level: 'info'
format: 'console'
prefix: '[POTATO]'
2021-06-10 22:41:58 +08:00
director: 'tmp/log'
2021-03-23 00:55:26 +08:00
link-name: 'latest_log'
show-line: true
encode-level: 'LowercaseColorLevelEncoder'
stacktrace-key: 'stacktrace'
log-in-console: true