Add a config to get inventaire.io URL

This commit is contained in:
2026-02-09 00:17:11 +01:00
parent f73defdad3
commit 60c610de42
11 changed files with 52 additions and 50 deletions

View File

@@ -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",
}
}