func setup() (uri *url.URL, f *os.File, err error) {
	runtime.GOMAXPROCS(runtime.NumCPU())

	if !AllowAuthFromFiles || CredentialsPath == "" {
		aa.LoadCredentials(inlineCredentials)
	} else if err = aa.LoadCredentials(CredentialsPath); err != nil {
		return
	}

	if !AllowAuthFromFiles || AuthorizationsPath == "" {
		az.LoadAuthorizations(inlineAuthorizations)
	} else if err = az.LoadAuthorizations(AuthorizationsPath); err != nil {
		return
	}

	uri, err = url.Parse(BackendURL)
	if err != nil {
		return
	}

	f, err = redirectLogsToFile(LogPath)
	return
}
func loadCredentials() {
	aa.LoadCredentials(aa.CredentialsStore{
		"foo": aa.Hash("bar"),
		"baz": aa.Hash("boo"),
	})
}