|
|
@ -19,7 +19,7 @@ app.use(cors()); |
|
|
|
const port = process.env.PORT || 3001; |
|
|
|
// file name also referenced in flyway.conf and potentially in .env files or in environment variables
|
|
|
|
const dbFile = process.env.SQLITE_FILE || './image-db.sqlite'; |
|
|
|
const bucketName = process.env.AWS_BUCKET_NAME || 'gifts-image-test'; |
|
|
|
const bucketName = process.env.S3_BUCKET_NAME || 'gifts-image-test'; |
|
|
|
const imageServer = process.env.DOWNLOAD_IMAGE_SERVER || 'test-image.timesafari.app'; |
|
|
|
|
|
|
|
const ethrDidResolver = getResolver; |
|
|
@ -41,12 +41,12 @@ const endorserApiUrl = process.env.ENDORSER_API_URL || 'https://test-api.endorse |
|
|
|
|
|
|
|
// Configure AWS
|
|
|
|
const s3Client = new S3Client({ |
|
|
|
endpoint: 'https://' + process.env.AWS_ENDPOINT_SERVER, |
|
|
|
region: process.env.AWS_REGION, |
|
|
|
endpoint: 'https://' + process.env.S3_ENDPOINT_SERVER, |
|
|
|
region: process.env.S3_REGION, |
|
|
|
forcePathStyle: true, |
|
|
|
credentials: { |
|
|
|
accessKeyId: process.env.AWS_ACCESS_KEY, |
|
|
|
secretAccessKey: process.env.AWS_SECRET_KEY |
|
|
|
accessKeyId: process.env.S3_ACCESS_KEY, |
|
|
|
secretAccessKey: process.env.S3_SECRET_KEY |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|