add S3 path style as environment variable and set it in CI config

This commit is contained in:
Sonja Happ 2021-01-14 14:21:49 +01:00
parent 9426e289dc
commit 2f796ed120
2 changed files with 21 additions and 20 deletions

View file

@ -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

View file

@ -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)