File Storage S3 : non-AWS S3 (Vult provider)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zkuun8
    Junior Member
    • Dec 2024
    • 18

    File Storage S3 : non-AWS S3 (Vult provider)

    Hi,

    I'm having issues with setting up an external file storage.
    I follow this post :
    When I try to upload a file, I get error 500.

    So I wonder if I really can add S3 non-AWS by this way or is it only available for Amazon services?

    In the case it should works with Vult, this is what I tried:

    config-internal.php :
    Code:
    'awsS3Storage' => [
    'bucketName' => 'erp-espocrm',
    'path' => 'test',
    'credentials' => [
    'key' => 'xxxxxxxxxx',
    'secret' => 'xxxxxxxx',
    ],
    'region' => 'ams1',
    'endpoint' => 'ams1.vultrobjects.com',
    ],
    into config.php:
    Code:
    'defaultFileStorage' => 'AwsS3',
    'thumbImageCacheDisabled' => true,
    As you can see, this is the Bucket : erp-espocrm with the folder test
    Click image for larger version

Name:	image.png
Views:	42
Size:	39.2 KB
ID:	113547
    And there this is the Key/Secret information :

    Click image for larger version

Name:	image.png
Views:	33
Size:	62.5 KB
ID:	113548
  • yuri
    Member
    • Mar 2014
    • 8500

    #2
    What is in log file? Usually all errors are logged.

    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • yuri
      Member
      • Mar 2014
      • 8500

      #3
      I've never tried to connect other than AWS services. But I know people successfully did. Though I can't be sure it work with any.
      If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

      Comment

      • zkuun8
        Junior Member
        • Dec 2024
        • 18

        #4
        Hi yuri,

        This is the log :

        Code:
        [2025-01-04 14:17:18] CRITICAL: (0) Could not contact remote server. Could not resolve host: ams1.vultrobjects.com for "https://ams1.vultrobjects.com/erp-espocrm/test/677942e7ab9894d2e". :: POST /Attachment :: /var/www/html/vendor/async-aws/core/src/Response.php(161)
        Should I change the entrypoint like this : %(bucket)s.ams1.vultrobjects.com ?

        Comment

        • yuri
          Member
          • Mar 2014
          • 8500

          #5
          I don't know about which endpoint should be used. Maybe you need to prepend https://
          If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

          Comment

          • zkuun8
            Junior Member
            • Dec 2024
            • 18

            #6
            thanks !
            I was able to make it works, so I can confirm it works !
            My issue was a server DNS issue. thanks for help !

            Comment

            • zkuun8
              Junior Member
              • Dec 2024
              • 18

              #7
              Hi,

              Instead of writing these informations into config-intenal.php, I would like to store them somewhere else.
              Is it possible?​

              Code:
              'awsS3Storage' => [
              'bucketName' => 'erp-espocrm',
              'path' => 'test',
              'credentials' => [
              'key' => 'xxxxxxxxxx',
              'secret' => 'xxxxxxxx',
              ],
              'region' => 'ams1',
              'endpoint' => 'ams1.vultrobjects.com',
              ],



              I would like to store these informations into the UI like Administration > Integrations
              If so, I would like to create a new element on the left panel (under Outlook) , and a form (like on the right). Could you tell me how to do this please?Click image for larger version

Name:	image.png
Views:	0
Size:	39.3 KB
ID:	113571

              Comment

              • yuri
                Member
                • Mar 2014
                • 8500

                #8
                It's not trivial to describe. It requires work to figure out how to do it. Maybe consider using config-internal for now and implement the itegration page later on.
                If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

                Comment

                Working...