正在显示
2 个修改的文件
包含
3 行增加
和
1 行删除
| @@ -4,6 +4,8 @@ Port: 8081 | @@ -4,6 +4,8 @@ Port: 8081 | ||
| 4 | Verbose: false | 4 | Verbose: false |
| 5 | Migrate: false | 5 | Migrate: false |
| 6 | Timeout: 30000 | 6 | Timeout: 30000 |
| 7 | +# CertFile: ./key/fjmaimaimai.com_bundle.crt | ||
| 8 | +# KeyFile: ./key/fjmaimaimai.com.key | ||
| 7 | Log: | 9 | Log: |
| 8 | #Mode: file | 10 | #Mode: file |
| 9 | Encoding: plain | 11 | Encoding: plain |
| @@ -10,7 +10,7 @@ type Auth struct { | @@ -10,7 +10,7 @@ type Auth struct { | ||
| 10 | } | 10 | } |
| 11 | type Config struct { | 11 | type Config struct { |
| 12 | DB struct { | 12 | DB struct { |
| 13 | - DataSource string | 13 | + DataSource string `json:",env=DataSource"` |
| 14 | } `json:",optional"` | 14 | } `json:",optional"` |
| 15 | Cache cache.CacheConf `json:",optional"` | 15 | Cache cache.CacheConf `json:",optional"` |
| 16 | DTM DTM `json:",optional"` | 16 | DTM DTM `json:",optional"` |
-
请 注册 或 登录 后发表评论