-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add path-style hosting to plugin #18
Conversation
#include "S3File.hh" | ||
#include "stl_string_utils.hh" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[lint] reported by reviewdog 🐶
#include "S3File.hh" | |
#include "stl_string_utils.hh" |
#include "S3Directory.hh" | ||
#include "S3File.hh" | ||
#include "stl_string_utils.hh" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[lint] reported by reviewdog 🐶
#include "S3Directory.hh" | |
#include "S3File.hh" | |
#include "stl_string_utils.hh" |
m_log.Emsg("Config", "s3.region not specified"); | ||
return false; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[lint] reported by reviewdog 🐶
m_log.Emsg("Config", "s3.region not specified"); | |
return false; | |
} | |
if (!handle_required_config(attribute, "s3.service_url", value, | |
this->s3_service_url)) { | |
Config.Close(); | |
return false; |
m_log.Emsg("Config", "s3.url_style not specified"); | ||
return false; | ||
} else { | ||
// We want this to be case-insensitive. | ||
toLower( this->s3_url_style ); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[lint] reported by reviewdog 🐶
m_log.Emsg("Config", "s3.url_style not specified"); | |
return false; | |
} else { | |
// We want this to be case-insensitive. | |
toLower( this->s3_url_style ); | |
} | |
if (!handle_required_config(attribute, "s3.access_key_file", value, | |
this->s3_access_key_file)) { | |
Config.Close(); | |
return false; |
m_log.Emsg("Config", "invalid s3.url_style specified. Must be 'virtual' or 'path'"); | ||
return false; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[lint] reported by reviewdog 🐶
m_log.Emsg("Config", "invalid s3.url_style specified. Must be 'virtual' or 'path'"); | |
return false; | |
} | |
if (!handle_required_config(attribute, "s3.secret_key_file", value, | |
this->s3_secret_key_file)) { | |
Config.Close(); | |
return false; |
This takes PR #16 and adds the "window dressing" laid out in issue #10
Closes #10