Files
go-admin/config/settings.yml
T
2020-07-06 18:13:29 +08:00

26 lines
642 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
settings:
application:
mode: dev # dev开发环境 test测试环境 prod线上环境
host: 0.0.0.0
name: testApp
port: 8000
readtimeout: 1
writertimeout: 2
domain: localhost:8000
ishttps: false
ssl:
key: keystring
pem: temp/pem.pem
log:
operdb: false
dir: temp/logs
jwt:
secret: go-admin
timeout: 3600
database:
driver: mysql # mysqlsqlite3 postgres
dbname: dbname
source: user:password@tcp(127.0.0.1:3306)/dbname?charset=utf8&parseTime=True&loc=Local
# source: sqlite3.db
# source: host=myhost port=myport user=gorm dbname=gorm password=mypassword