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.
|
|
|
################
|
|
|
|
# 应用基础配置
|
|
|
|
################
|
|
|
|
|
|
|
|
# 设置运行环境,开设置的值有 dev、test、prod
|
|
|
|
APP_ENV=dev
|
|
|
|
# 配置时区(预留配置,暂未生效)
|
|
|
|
APP_TIMEZONE=
|
|
|
|
|
|
|
|
|
|
|
|
################
|
|
|
|
# 数据库配置
|
|
|
|
################
|
|
|
|
|
|
|
|
# 数据库驱动,支持 sqlite3、mysql、sqlserver、pgsql
|
|
|
|
DB_DRIVER=
|
|
|
|
# 数据库连接配置
|
|
|
|
DB_DSN=
|
|
|
|
# 数据表前缀
|
|
|
|
DB_PREFIX=
|
|
|
|
# MySQL存储引擎
|
|
|
|
DB_STORE_ENGINE=
|
|
|
|
# 最大闲置连接数
|
|
|
|
DB_MAX_IDLE_CONNS=
|
|
|
|
# 最大打开连接数
|
|
|
|
DB_MAX_OPEN_CONNS=
|
|
|
|
# 连接最大有效时长
|
|
|
|
DB_CONN_MAX_LIFETIME=
|
|
|
|
# 是不是代码优先模式,只有开启此选项后才能够
|
|
|
|
# 使用自动迁移功能同步表结构到数据库
|
|
|
|
DB_CODE_FIRST=
|
|
|
|
|
|
|
|
|
|
|
|
################
|
|
|
|
# 授权认证
|
|
|
|
################
|
|
|
|
|
|
|
|
# 在线获取公私钥网站 https://travistidwell.com/jsencrypt/demo/
|
|
|
|
# 或者使用 scripts/rs256/rs256.go 生成
|
|
|
|
|
|
|
|
# 授权令牌私钥
|
|
|
|
TICKET_PRIVATE_KEY=
|
|
|
|
# 授权令牌公钥
|
|
|
|
TICKET_PUBLIC_KEY=
|
|
|
|
# 令牌时长
|
|
|
|
TICKET_TTL=
|
|
|
|
# 令牌签发者
|
|
|
|
TICKET_ISSUER=
|
|
|
|
# 令牌主题
|
|
|
|
TICKET_SUBJECT=
|
|
|
|
# 令牌受众,多个值可以使用逗号分开,比如:app,pc,wap
|
|
|
|
TICKET_AUDIENCE=
|