feat: add yaml config support
This commit is contained in:
20
etc/config.yaml
Normal file
20
etc/config.yaml
Normal file
@ -0,0 +1,20 @@
|
||||
---
|
||||
name: ult
|
||||
listen:
|
||||
http: 0.0.0.0:8080
|
||||
db:
|
||||
# uri: postgres::host=pg.dev user=xx_user password=xx_password dbname=xx_database port=5432 sslmode=disable TimeZone=Asia/Shanghai
|
||||
uri: sqlite::db.sqlite3
|
||||
cache:
|
||||
uri: 'lru::'
|
||||
# uri: 'memory::'
|
||||
# uri: redis::u:p@redis.dev:6379
|
||||
es:
|
||||
uri: http://es.dev:9200
|
||||
index:
|
||||
staff: some_staff
|
||||
nebula:
|
||||
uri: nebula.1.dev:9669,nebula.2.dev:9669
|
||||
space: test_space
|
||||
username: admin
|
||||
password: password
|
Reference in New Issue
Block a user