Add a config to get inventaire.io URL
This commit is contained in:
@@ -15,6 +15,7 @@ type Config struct {
|
||||
JWTKey string `toml:"jwt_key" comment:"The key used to encrypt the generated JWT. Encoded in base64. If empty a random one will be generated on every restart."`
|
||||
ImageFolderPath string `toml:"image_folder_path" default:"img" comment:"Folder where uploaded files will be stored."`
|
||||
Limit int `toml:"limit" default:"100" comment:"A single API call will return at most this number of records."`
|
||||
InventaireUrl string `toml:"inventaire_url" default:"https://inventaire.io" comment:"An inventaire.io instance URL."`
|
||||
}
|
||||
|
||||
func defaultConfig() Config {
|
||||
@@ -25,6 +26,7 @@ func defaultConfig() Config {
|
||||
JWTKey: "",
|
||||
ImageFolderPath: "img",
|
||||
Limit: 100,
|
||||
InventaireUrl: "https://inventaire.io",
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user