diff --git a/CHANGELOG.md b/CHANGELOG.md index 1d10c27..68ba84c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ ## Changelog +### Unreleased + +* Add `registry_password_file` option to the config file. + ### 0.7.2 (2018-07-30) * Make web root accessible w/o trailing slash when base_path is configured. diff --git a/main.go b/main.go index ead3d58..25d43af 100644 --- a/main.go +++ b/main.go @@ -96,7 +96,7 @@ func main() { if err != nil { panic(err) } - a.config.Password = string(passwordBytes[:]) + a.config.Password = strings.TrimSuffix(string(passwordBytes[:]), "\n") } // Init registry API client.