File tree Expand file tree Collapse file tree 5 files changed +6
-4
lines changed Expand file tree Collapse file tree 5 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ AWS_ACCESS_KEY_ID=YOUR_KEY
18
18
AWS_SECRET_ACCESS_KEY = YOUR_SECRET_KEY
19
19
S3_REGION = REGION
20
20
BUCKET_NAME = BUCKET
21
+ SIGNED_URL_EXPIRES_IN_SECONDS = NUMBER
21
22
22
23
#
23
24
# SENDGRID
Original file line number Diff line number Diff line change @@ -93,10 +93,10 @@ class Config implements IConfig {
93
93
env : 'S3_REGION' ,
94
94
default : null ,
95
95
} ,
96
- SIGNED_URL_EXPIRES_IN : {
96
+ SIGNED_URL_EXPIRES_IN_SECONDS : {
97
97
doc : 'Number of seconds a signed URL expires in' ,
98
98
format : String ,
99
- env : 'SIGNED_URL_EXPIRES_IN ' ,
99
+ env : 'SIGNED_URL_EXPIRES_IN_SECONDS ' ,
100
100
default : null ,
101
101
} ,
102
102
} ,
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ type EnvironmentSchema = {
12
12
S3 : {
13
13
BUCKET_NAME : string ;
14
14
REGION : string ;
15
- SIGNED_URL_EXPIRES_IN : number ;
15
+ SIGNED_URL_EXPIRES_IN_SECONDS : number ;
16
16
} ;
17
17
} ;
18
18
JWT : {
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ class S3ClientService {
35
35
} ,
36
36
} ) ;
37
37
this . bucketName = config . ENV . AWS . S3 . BUCKET_NAME ;
38
- this . signedUrlExpiresIn = config . ENV . AWS . S3 . SIGNED_URL_EXPIRES_IN ;
38
+ this . signedUrlExpiresIn = config . ENV . AWS . S3 . SIGNED_URL_EXPIRES_IN_SECONDS ;
39
39
this . logger = logger ;
40
40
}
41
41
Original file line number Diff line number Diff line change @@ -115,6 +115,7 @@ erDiagram
115
115
files {
116
116
id serial PK "not null"
117
117
key varchar "not null, unique"
118
+ name varchar "not null"
118
119
content_type varchar "not null"
119
120
created_at timestamp "not null"
120
121
updated_at timestamp "not null"
You can’t perform that action at this time.
0 commit comments