mirror of https://github.com/go-gitea/gitea.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
3c91b09c19
The MinIO client isn't redirecting to the correct AWS endpoint if a non-default data center is used. In my use case I created an AWS bucket at `eu-central-1` region. Because of the missing region initialization of the client the default `us-east-1` API endpoint is used returning a `301 Moved Permanently` response that's not handled properly by MinIO client. This in return aborts using S3 storage on AWS as the `BucketExists()` call will fail with the http moved error. MinIO client trace shows the issue: ```text ---------START-HTTP--------- HEAD / HTTP/1.1 Host: xxxxxxxxxxx-prod-gitea-data.s3.dualstack.us-east-1.amazonaws.com User-Agent: MinIO (windows; amd64) minio-go/v7.0.61 Authorization: AWS4-HMAC-SHA256 Credential=**REDACTED**/20230809/accesspoint.eu-central-1/s3/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=**REDACTED** X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 X-Amz-Date: 20230809T141143Z HTTP/1.1 301 Moved Permanently Connection: close Content-Type: application/xml Date: Wed, 09 Aug 2023 14:11:43 GMT Server: AmazonS3 X-Amz-Bucket-Region: eu-central-1 X-Amz-Id-2: UK7wfeYi0HcTcytNvQ3wTAZ5ZP1mOSMnvRZ9Fz4xXzeNsS47NB/KfFx2unFxo3L7XckHpMNPPVo= X-Amz-Request-Id: S1V2MJV8SZ11GEVN ---------END-HTTP--------- ``` Co-authored-by: Heiko Besemann <heiko.besemann@qbeyond.de> |
2 years ago | |
---|---|---|
.. | ||
actions | 2 years ago | |
activitypub | 2 years ago | |
analyze | 2 years ago | |
assetfs | 2 years ago | |
auth | ||
avatar | 2 years ago | |
base | ||
cache | 2 years ago | |
charset | ||
container | ||
context | 2 years ago | |
csv | ||
doctor | 2 years ago | |
emoji | ||
eventsource | 2 years ago | |
generate | 2 years ago | |
git | 2 years ago | |
gitgraph | ||
graceful | 2 years ago | |
hcaptcha | ||
highlight | 2 years ago | |
hostmatcher | ||
html | 2 years ago | |
httpcache | 2 years ago | |
httplib | 2 years ago | |
indexer | 2 years ago | |
issue/template | ||
json | ||
label | ||
lfs | ||
log | 2 years ago | |
markup | 2 years ago | |
mcaptcha | ||
metrics | ||
migration | ||
mirror | ||
nosql | 2 years ago | |
notification | 2 years ago | |
options | ||
packages | 2 years ago | |
paginator | ||
pprof | ||
private | ||
process | 2 years ago | |
proxy | ||
proxyprotocol | ||
public | 2 years ago | |
queue | 2 years ago | |
recaptcha | ||
references | ||
regexplru | 2 years ago | |
repository | 2 years ago | |
secret | ||
session | ||
setting | 2 years ago | |
sitemap | ||
ssh | 2 years ago | |
storage | 2 years ago | |
structs | 2 years ago | |
svg | 2 years ago | |
sync | ||
system | ||
templates | 2 years ago | |
test | 2 years ago | |
testlogger | ||
timeutil | ||
translation | ||
turnstile | ||
typesniffer | ||
updatechecker | ||
upload | ||
uri | ||
user | ||
util | 2 years ago | |
validation | ||
web | 2 years ago | |
webhook |