simple-login / app

The SimpleLogin back-end and web app
https://simplelogin.io
GNU Affero General Public License v3.0
5.16k stars 438 forks source link

[enhancement] Enable file upload to non-AWS object storage #1476

Open buxm opened 1 year ago

buxm commented 1 year ago

It would be great if it was possible to upload files to an S3 API compatible object storage service different from AWS S3, such as Google Cloud Platform, Oracle Cloud, self-hosted Minio and many others. This could be achieved by adding support for the following variables:

Such variables could then be used in boto3.client() or boto3.resource() to connect to alternative object storage services (using AWS_URL) and potentially to self hosted ones (with own CA or with self signed certificates or even without SSL) using the other variables. Examples of boto3 usage with non-AWS S3 API compatible object storage services: https://medium.com/oracledevs/use-aws-python-sdk-to-upload-files-to-oracle-cloud-infrastructure-object-storage-b623e5681412 https://docs.outscale.com/en/userguide/Boto3.html

m4teh commented 5 months ago

Setting up my server, and was browsing through the conf params for AWS. Expected the ability to use S3 compatible such as Minio. Was not seeing the URL variable. Alas, I see it's not possible as yet.

So, here I am adding my +1