mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
All I want for Christmas are logs clean of warnings about HTTPS access to my
bucket... Using S3 to host a static website requires you to use dots in the bucket name. As a result, the logs from using a gem like middleman-s3_sync are littered with warnings. middleman-s3_sync uses path_style by default, so the warning isn't really needed. This changerRemoves the warning about using dot in bucket names if it is already configured to use path style. This shows a deliberate (and probably knowledgeable) choice.
This commit is contained in:
parent
d0bb6043e1
commit
6f51d15b5e
1 changed files with 5 additions and 5 deletions
|
@ -224,7 +224,7 @@ module Fog
|
|||
if COMPLIANT_BUCKET_NAMES !~ bucket_name
|
||||
Fog::Logger.warning("fog: the specified s3 bucket name(#{bucket_name}) is not a valid dns name, which will negatively impact performance. For details see: http://docs.amazonwebservices.com/AmazonS3/latest/dev/BucketRestrictions.html")
|
||||
path_style = true
|
||||
elsif scheme == 'https' && bucket_name =~ /\./
|
||||
elsif scheme == 'https' && !path_style && bucket_name =~ /\./
|
||||
Fog::Logger.warning("fog: the specified s3 bucket name(#{bucket_name}) contains a '.' so is not accessible over https as a virtual hosted bucket, which will negatively impact performance. For details see: http://docs.amazonwebservices.com/AmazonS3/latest/dev/BucketRestrictions.html")
|
||||
path_style = true
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue