ansible-ThoTeam / nexus3-oss

Ansible role to install and provision sonatype nexus3-oss
GNU General Public License v3.0
286 stars 205 forks source link

S3 blobstore forcepathstyle var in config #381

Closed platonisation closed 9 months ago

platonisation commented 1 year ago

Hi all,

Thanks for the great work. I am sharing this here, not as an issue but in case it helps someone. It could maybe be added to the readme, otherwise closed is fine.

When using a private S3 blobstore endpoint which is not AWS compatible, you can use Nexus's forcePathStyle var, but it is not to be used with capital letters like accessKeyId or secretAccesKey. However it is quite strange because in their webAPI it is using capital letters.

For example, will not work:

      nexus_blobstores:
        - name: bla
          type: S3
          config:
            bucket: bla
            forcePathStyle: "True"
            accessKeyId: bla
            secretAccessKey: bla
            endpoint: https://bla:1234
            region: "default"

For example, will work:

      nexus_blobstores:
        - name: bla
          type: S3
          config:
            bucket: bla
            forcepathstyle: "True"
            accessKeyId: bla
            secretAccessKey: bla
            endpoint: https://bla:1234
            region: "default"

Regards,

zeitounator commented 9 months ago

Thanks for sharing.