Skip to content
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

Merged
merged 2 commits into from
Feb 29, 2024

Conversation

jhiemstrawisc
Copy link
Member

This takes PR #16 and adds the "window dressing" laid out in issue #10

Closes #10

Comment on lines 8 to +9
#include "S3File.hh"
#include "stl_string_utils.hh"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[lint] reported by reviewdog 🐶

Suggested change
#include "S3File.hh"
#include "stl_string_utils.hh"

Comment on lines 6 to +8
#include "S3Directory.hh"
#include "S3File.hh"
#include "stl_string_utils.hh"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[lint] reported by reviewdog 🐶

Suggested change
#include "S3Directory.hh"
#include "S3File.hh"
#include "stl_string_utils.hh"

Comment on lines 98 to 100
m_log.Emsg("Config", "s3.region not specified");
return false;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[lint] reported by reviewdog 🐶

Suggested change
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;

Comment on lines +102 to +107
m_log.Emsg("Config", "s3.url_style not specified");
return false;
} else {
// We want this to be case-insensitive.
toLower( this->s3_url_style );
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[lint] reported by reviewdog 🐶

Suggested change
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;

Comment on lines +109 to +111
m_log.Emsg("Config", "invalid s3.url_style specified. Must be 'virtual' or 'path'");
return false;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[lint] reported by reviewdog 🐶

Suggested change
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;

@jhiemstrawisc jhiemstrawisc merged commit 91c03b4 into PelicanPlatform:main Feb 29, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add ability to configure "path-style" hosting
2 participants