feat: added cacerts and some tidying
This commit is contained in:
parent
2112e7eefd
commit
bdd85b01ff
8 changed files with 279 additions and 59 deletions
|
|
@ -190,7 +190,9 @@ func (s *Service) Upload() http.HandlerFunc {
|
|||
)
|
||||
|
||||
// show what we're uploading
|
||||
log.Debug().Str("path", path).Msg("Service.Upload()")
|
||||
log.Debug().
|
||||
Str("path", path).
|
||||
Msg("Service.Upload()")
|
||||
|
||||
// take the provided path and store the file contents
|
||||
dirpath = filepath.Dir(path)
|
||||
|
|
@ -296,7 +298,7 @@ func (s *Service) loadProfiles(profileIDs []string, store storage.KVStore, errs
|
|||
profile *makeshift.Profile
|
||||
err error
|
||||
)
|
||||
if i > DEFAULT_PROFILES_MAX_COUNT {
|
||||
if i > s.ProfilesMaxCount {
|
||||
log.Warn().Msg("max profiles count reached...stopping")
|
||||
return errs
|
||||
}
|
||||
|
|
@ -329,7 +331,7 @@ func (s *Service) loadPlugins(pluginNames []string, store storage.KVStore, args
|
|||
plugin makeshift.Plugin
|
||||
err error
|
||||
)
|
||||
if i > DEFAULT_PLUGINS_MAX_COUNT {
|
||||
if i > s.PluginsMaxCount {
|
||||
log.Warn().Msg("max plugins count reached or exceeded...stopping")
|
||||
return hooks, errs
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue