1
0
Fork 0

Reduce expiry of upload link to 30min

main
Ambrose Chua 2020-05-26 13:36:04 +08:00
parent 660a688748
commit ec83245f68
Signed by: ambrose
GPG Key ID: BC367D33F140B5C2
2 changed files with 4 additions and 1 deletions

View File

@ -37,7 +37,7 @@ Implement access controls by signing or proxying requests.
2. Get write access method for the bucket 2. Get write access method for the bucket
3. Validate the token against the access method 3. Validate the token against the access method
4. Validate that OBJECTNAME starts with `photo/` 4. Validate that OBJECTNAME starts with `photo/`
5. If necessary, presign an object URL for 1 day 5. If necessary, presign an object URL for 30 minutes
6. 307 redirect to presigned URL 6. 307 redirect to presigned URL
### Authentication ### Authentication

3
go.mod Normal file
View File

@ -0,0 +1,3 @@
module git.makerforce.io/photos/photos
go 1.14