mirror of https://github.com/sunface/rust-course
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.1 KiB
39 lines
1.1 KiB
#################################### Common Configurations##############################
|
|
common:
|
|
version: 0.1.0
|
|
log_level: "info"
|
|
is_prod: false
|
|
app_name: "im.dev"
|
|
|
|
#################################### Server ##############################
|
|
server:
|
|
addr: ":6001"
|
|
base_url: "/api"
|
|
|
|
#################################### User/Session ##############################
|
|
user:
|
|
# username for superadmin, setted only in first run, can't be changed
|
|
super_admin_username: "sunface"
|
|
# email for superadmin
|
|
super_admin_email: "cto@188.com"
|
|
# a session is created when user login to im.dev, this session will be expired after X seconds
|
|
session_expire: 259200
|
|
|
|
ui:
|
|
# base ui domain
|
|
domain: "http://localhost:4004"
|
|
|
|
#################################### Paths ##############################
|
|
# Path to where im.dev can store temp files, sessions, and the sqlite3 db (if that is used)
|
|
paths:
|
|
# sqlite3 db files
|
|
data: ""
|
|
logs: ""
|
|
|
|
#################################### Posts ##############################
|
|
posts:
|
|
title_max_len: 128
|
|
brief_max_len: 128
|
|
# whether allow writing posts
|
|
writing_enabled: true
|