diff --git a/backend/app/cmd/remap.go b/backend/app/cmd/remap.go index eda4fcc7..209e5936 100644 --- a/backend/app/cmd/remap.go +++ b/backend/app/cmd/remap.go @@ -22,6 +22,7 @@ type RemapCommand struct { CommonOpts } +// Execute runs (re)mapper with RemapCommand parameters, entry point for "remap" command func (rc *RemapCommand) Execute(args []string) error { log.Printf("[INFO] start remap, site %s, file with rules %s", rc.Site, rc.InputFile) resetEnv("SECRET", "ADMIN_PASSWD") diff --git a/backend/app/cmd/server.go b/backend/app/cmd/server.go index 2e126017..4bc33df3 100644 --- a/backend/app/cmd/server.go +++ b/backend/app/cmd/server.go @@ -105,6 +105,7 @@ type ServerCommand struct { CommonOpts } +// ImageProxyGroup defines options group for image proxy type ImageProxyGroup struct { HTTP2HTTPS bool `long:"http2https" env:"HTTP2HTTPS" description:"enable HTTP->HTTPS proxy"` CacheExternal bool `long:"cache-external" env:"CACHE_EXTERNAL" description:"enable caching for external images"`