Update SharingTime to 20 min as 15 is not enough

This commit is contained in:
nemunaire 2023-03-05 17:05:01 +01:00
parent 64eb8f2852
commit ce0c8e0025
2 changed files with 2 additions and 2 deletions

View File

@ -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."})

View File

@ -17,7 +17,7 @@ import (
"github.com/gin-gonic/gin"
)
const SharingTime = 15 * time.Minute
const SharingTime = 10 * time.Minute
var (
s3_endpoint string