A container registry that uses the AT Protocol for manifest storage and S3 for blob storage. atcr.io
docker container atproto go
81
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix upload blob to s3

+6 -4
+6 -4
pkg/s3/types.go
··· 248 248 // PutBytes uploads data to blobPath with the given content type. 249 249 func (s *S3Service) PutBytes(ctx context.Context, blobPath string, data []byte, contentType string) error { 250 250 key := s.s3Key(blobPath) 251 + contentLength := int64(len(data)) 251 252 _, err := s.Client.PutObject(ctx, &awss3.PutObjectInput{ 252 - Bucket: &s.Bucket, 253 - Key: &key, 254 - Body: bytes.NewReader(data), 255 - ContentType: &contentType, 253 + Bucket: &s.Bucket, 254 + Key: &key, 255 + Body: bytes.NewReader(data), 256 + ContentType: &contentType, 257 + ContentLength: &contentLength, 256 258 }) 257 259 return err 258 260 }