Ajouter flags pour api port, host et protocol
Ajouter `server.api.port`, `server.api.host`, `server.api.protocol`
This commit is contained in:
parent
891cddd51e
commit
04de5cdad2
2 changed files with 17 additions and 2 deletions
|
@ -21,8 +21,11 @@ type Config struct {
|
|||
Username string `mapstructure:"username"`
|
||||
} `mapstructure:"admin"`
|
||||
Api struct {
|
||||
Auth bool `mapstructure:"auth"`
|
||||
Key string `mapstructure:"key"`
|
||||
Auth bool `mapstructure:"auth"`
|
||||
Host string `mapstructure:"host"`
|
||||
Key string `mapstructure:"key"`
|
||||
Port int `mapstructure:"port"`
|
||||
Protocol string `mapstructure:"protocol"`
|
||||
} `mapstructure:"api"`
|
||||
Documents struct {
|
||||
AccessKeyId string `mapstructure:"access_key_id"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue