Update SharingTime to 20 min as 15 is not enough
This commit is contained in:
parent
64eb8f2852
commit
ce0c8e0025
@ -576,7 +576,7 @@ func TriggerTests(c *gin.Context, work *Work, repo *Repository, u *User) {
|
||||
Key: aws.String(filepath.Join(fmt.Sprintf("%d", work.Id), fmt.Sprintf("rendu-%s.tar.xz", login))),
|
||||
})
|
||||
|
||||
url, err := req.Presign(SharingTime)
|
||||
url, err := req.Presign(SharingTime * 20)
|
||||
if err != nil {
|
||||
log.Println("Unable to create presign URL:", err)
|
||||
c.AbortWithStatusJSON(http.StatusInternalServerError, gin.H{"errmsg": "Something goes wrong when creating the presigned URL."})
|
||||
|
@ -17,7 +17,7 @@ import (
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
const SharingTime = 15 * time.Minute
|
||||
const SharingTime = 10 * time.Minute
|
||||
|
||||
var (
|
||||
s3_endpoint string
|
||||
|
Reference in New Issue
Block a user