Ajouter flags pour api port, host et protocol

Ajouter `server.api.port`, `server.api.host`, `server.api.protocol`
This commit is contained in:
Victor Lacasse-Beaudoin 2023-07-14 19:56:12 -04:00
parent 891cddd51e
commit 04de5cdad2
2 changed files with 17 additions and 2 deletions

View file

@ -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"`