42 lines
898 B
YAML
42 lines
898 B
YAML
server:
|
|
http:
|
|
addr: 0.0.0.0:8000
|
|
timeout: 1s
|
|
grpc:
|
|
addr: 0.0.0.0:9000
|
|
timeout: 1s
|
|
data:
|
|
database:
|
|
driver: mysql
|
|
source: root:root@tcp(127.0.0.1:3306)/test?timeout=5s&parseTime=True&loc=Local&charset=utf8mb4
|
|
redis:
|
|
addr: 127.0.0.1:6379
|
|
read_timeout: 0.2s
|
|
write_timeout: 0.2s
|
|
admin:
|
|
router_prefix: ""
|
|
jwt:
|
|
# Production deployments must override this value with a private secret.
|
|
signing_key: change-me-before-production
|
|
expires_time: 168h
|
|
buffer_time: 24h
|
|
issuer: kra
|
|
captcha:
|
|
key_long: 6
|
|
img_width: 240
|
|
img_height: 80
|
|
store_expiration: 3m
|
|
local:
|
|
store_path: uploads/file
|
|
path_prefix: uploads/file
|
|
email:
|
|
# Leave host/from/secret empty to disable SMTP error notifications.
|
|
to: ""
|
|
from: ""
|
|
host: ""
|
|
secret: ""
|
|
nickname: ""
|
|
port: 465
|
|
is_ssl: true
|
|
is_login_auth: false
|