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