mirror of
https://git.rwth-aachen.de/acs/public/villas/web-backend-go/
synced 2025-03-30 00:00:12 +01:00
add S3 path style as environment variable and set it in CI config
This commit is contained in:
parent
9426e289dc
commit
2f796ed120
2 changed files with 21 additions and 20 deletions
|
@ -24,7 +24,7 @@ variables:
|
||||||
AWS_SECRET_ACCESS_KEY: ${MINIO_ACCESS_SECRET}
|
AWS_SECRET_ACCESS_KEY: ${MINIO_ACCESS_SECRET}
|
||||||
S3_BUCKET: villas-web
|
S3_BUCKET: villas-web
|
||||||
S3_ENDPOINT: http://minio:9000
|
S3_ENDPOINT: http://minio:9000
|
||||||
|
S3_PATHSTYLE: 'true'
|
||||||
PORT: 4000
|
PORT: 4000
|
||||||
GO_IMAGE: golang:1.13-buster
|
GO_IMAGE: golang:1.13-buster
|
||||||
|
|
||||||
|
|
|
@ -115,6 +115,7 @@ func InitConfig() error {
|
||||||
"S3_ENDPOINT": "s3.endpoint",
|
"S3_ENDPOINT": "s3.endpoint",
|
||||||
"S3_REGION": "s3.region",
|
"S3_REGION": "s3.region",
|
||||||
"S3_NOSSL": "s3.nossl",
|
"S3_NOSSL": "s3.nossl",
|
||||||
|
"S3_PATHSTYLE": "s3.pathstyle",
|
||||||
}
|
}
|
||||||
|
|
||||||
defaults := config.NewStatic(static)
|
defaults := config.NewStatic(static)
|
||||||
|
|
Loading…
Add table
Reference in a new issue