mirror of
https://git.rwth-aachen.de/acs/public/villas/web-backend-go/
synced 2025-03-30 00:00:12 +01:00
s3: fix broken pre-signed URL signature
This commit is contained in:
parent
9b0f780ab3
commit
dd746295cc
2 changed files with 4 additions and 5 deletions
|
@ -50,7 +50,6 @@ test:
|
||||||
RABBITMQ_DEFAULT_PASS: villas
|
RABBITMQ_DEFAULT_PASS: villas
|
||||||
MINIO_ROOT_USER: minio-villas
|
MINIO_ROOT_USER: minio-villas
|
||||||
MINIO_ROOT_PASSWORD: minio-villas
|
MINIO_ROOT_PASSWORD: minio-villas
|
||||||
MINIO_DOMAIN: localhost
|
|
||||||
AWS_ACCESS_KEY_ID: ${MINIO_ROOT_USER}
|
AWS_ACCESS_KEY_ID: ${MINIO_ROOT_USER}
|
||||||
AWS_SECRET_ACCESS_KEY: ${MINIO_ROOT_PASSWORD}
|
AWS_SECRET_ACCESS_KEY: ${MINIO_ROOT_PASSWORD}
|
||||||
S3_BUCKET: villas-web
|
S3_BUCKET: villas-web
|
||||||
|
|
|
@ -119,7 +119,7 @@ func (f *File) getS3Url() (string, error) {
|
||||||
Bucket: aws.String(bucket),
|
Bucket: aws.String(bucket),
|
||||||
Key: aws.String(f.Key),
|
Key: aws.String(f.Key),
|
||||||
ResponseContentType: aws.String(f.Type),
|
ResponseContentType: aws.String(f.Type),
|
||||||
ResponseContentDisposition: aws.String("attachment; filename=" + f.Name),
|
// ResponseContentDisposition: aws.String("attachment; filename=" + f.Name),
|
||||||
// ResponseContentEncoding: aws.String(),
|
// ResponseContentEncoding: aws.String(),
|
||||||
// ResponseContentLanguage: aws.String(),
|
// ResponseContentLanguage: aws.String(),
|
||||||
// ResponseCacheControl: aws.String(),
|
// ResponseCacheControl: aws.String(),
|
||||||
|
|
Loading…
Add table
Reference in a new issue