Unable to connect to MiniO

Koichi Matsumoto wrote...
Hi,

I tried to use REMOTE_STORAGE with Minio server, https://min.io/ , however, Helpy always reports, "Oops there has been an error...". How can I fix this issue?

Log
Flag for Review
      Scott Miller replied...
      If you look into the logs in helpy/logs/production.log you might be able to get a better indication as to what is going on... do you have information on what specific things Min.io requires to connect?  Even if it is S3 compatible, there can be some additional things that are needed for the connection to work.
      Flag for Review
          Face of myself
          Koichi Matsumoto replied...
          production.log
          Flag for Review
              Face of myself
              Koichi Matsumoto replied...
              F, [2019-05-05T07:39:48.339420 #4835] FATAL -- :
              Excon::Error::Forbidden (Expected(200) <=> Actual(403 Forbidden)
              excon.error.response
              :body => "\nSignatureDoe
              sNotMatchThe request signature we calculated does not match the signature
              you provided. Check your key and signing method.uploads/user/profile_image/
              1/Face_of_Myself.jpghelpy/helpy/uploads/user/prof
              ile_image/1/Face_of_Myself.jpg159BD05BA9F7666771
              e60e4f-556c-4858-bdc6-6cda5d5801fb"
              :cookies => [
              ]
              :headers => {
              "Accept-Ranges" => "bytes"
              "Content-Security-Policy" => "block-all-mixed-content"
              "Content-Type" => "application/xml"
              "Date" => "Sun, 05 May 2019 14:39:48 GMT"
              "Server" => "MinIO/RELEASE.2019-05-02T19-07-09Z"
              "Strict-Transport-Security" => "max-age=15552000; includeSubdomains;"
              "Vary" => "Origin"
              "X-Amz-Request-Id" => "159BD05BA9F76667"
              "X-Content-Type-Options" => "nosniff"
              "X-Frame-Options" => "SAMEORIGIN"
              "X-Minio-Deployment-Id" => "71e60e4f-556c-4858-bdc6-6cda5d5801fb"
              "X-Xss-Protection" => "1; mode=block"
              }
              :host => "objstr.com"
              :local_address => "148.163.121.238"
              :local_port => 46094
              :path => "/helpy/uploads/user/profile_image/1/Face_of_Myself.jpg"
              :port => 443
              :reason_phrase => "Forbidden"
              :remote_ip => "192.3.176.179"
              :status => 403
              :status_line => "HTTP/1.1 403 Forbidden\r\n"
              ):
              app/controllers/admin/users_controller.rb:95:in `update'
              app/controllers/application_controller.rb:195:in `set_time_zone'
              Flag for Review
                  Face of myself
                  Koichi Matsumoto replied...
                  resolved by modifying config/initializer/fog-aws.rb. I created pull request. Please look into it.
                  Flag for Review
                      Face of myself
                      Koichi Matsumoto replied...
                      Oh, Logo.png and favicon.ico are not loaded from the remote host... able to be loaded only from local file system. Please fix it.
                      Flag for Review
                          Scott Miller replied...
                          Thanks for figuring this out and doing the PR Koichi!
                          Flag for Review