EPFL-ENAC / ALICE-ETHZ-AREMA

https://alice-ethz-arema.epfl.ch
GNU General Public License v3.0
1 stars 0 forks source link

add upload api and cdn to serve uploaded images #1

Closed guilbep closed 1 year ago

guilbep commented 1 year ago

We should have a way of uploading images and serving them like for unhcr

Duplicate the following services:

ymarcon commented 1 year ago

S3 access keys and secrets are in the admin's keystore: s3 arema read / s3 arema write.

In the .env

# used by nginx s3 service and fast api boto api
S3_ENDPOINT_HOSTNAME=s3.epfl.ch
S3_ENDPOINT_PROTOCOL=https://
S3_ACCESS_KEY_ID=xxxxxxxx
S3_SECRET_ACCESS_KEY=xxxxxxxxx
S3_REGION=EU
S3_Bucket=10208-3dc6ab3b82a468a070599cbdb7c049c0
# for instance if S3_Key is foo/bar/ ; the url will start with: /s3/foo/bar/
S3_Key=arema