Skip to content

Commit ad4a7c4

Browse files
authored
tx cos support endpoint (#506)
1 parent 20fc156 commit ad4a7c4

4 files changed

Lines changed: 5 additions & 3 deletions

File tree

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ require (
1010
github.com/go-git/go-git/v5 v5.16.2
1111
github.com/google/uuid v1.6.0
1212
github.com/hashicorp/go-version v1.7.0
13-
github.com/langgenius/dify-cloud-kit v0.1.0
13+
github.com/langgenius/dify-cloud-kit v0.1.1
1414
github.com/panjf2000/ants/v2 v2.10.0
1515
github.com/redis/go-redis/v9 v9.5.5
1616
github.com/spf13/cobra v1.8.1

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,8 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
240240
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
241241
github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc=
242242
github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw=
243-
github.com/langgenius/dify-cloud-kit v0.1.0 h1:nqI+nT77jaSwB3jaGBmh0czGWqz9vA/kSc3YTiFXm0Y=
244-
github.com/langgenius/dify-cloud-kit v0.1.0/go.mod h1:Ji3gs2B0I3swppmjaIKbOOpGgbsKu6JVpVcUSYWOBeo=
243+
github.com/langgenius/dify-cloud-kit v0.1.1 h1:VR7tybvhNZ0L6ORouZlRyeyBBPuxVYPUbh/ozyn5mIQ=
244+
github.com/langgenius/dify-cloud-kit v0.1.1/go.mod h1:6XdvO+o95ZV+a/fyHErXEYORlzN6QCjnBz5SHJk5xSc=
245245
github.com/leodido/go-urn v1.4.0 h1:WT9HwE9SGECu3lg4d/dIA+jxlljEa1/ffXKmRjqdmIQ=
246246
github.com/leodido/go-urn v1.4.0/go.mod h1:bvxc+MVxLKB4z00jd1z+Dvzr47oO32F/QSNjSBOlFxI=
247247
github.com/lucasb-eyer/go-colorful v1.2.0 h1:1nnpGOrhyZZuNyfu1QjKiUICQ74+3FNCN69Aj6K7nkY=

internal/server/server.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ func initOSS(config *app.Config) oss.OSS {
3434
},
3535
TencentCOS: &oss.TencentCOS{
3636
Region: config.TencentCOSRegion,
37+
Endpoint: config.TencentCOSEndpoint,
3738
SecretID: config.TencentCOSSecretId,
3839
SecretKey: config.TencentCOSSecretKey,
3940
Bucket: config.PluginStorageOSSBucket,

internal/types/app/config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ type Config struct {
3737
TencentCOSSecretKey string `envconfig:"TENCENT_COS_SECRET_KEY"`
3838
TencentCOSSecretId string `envconfig:"TENCENT_COS_SECRET_ID"`
3939
TencentCOSRegion string `envconfig:"TENCENT_COS_REGION"`
40+
TencentCOSEndpoint string `envconfig:"TENCENT_COS_ENDPOINT"`
4041

4142
// azure blob
4243
AzureBlobStorageContainerName string `envconfig:"AZURE_BLOB_STORAGE_CONTAINER_NAME"`

0 commit comments

Comments
 (0)