Skip to content

Commit

Permalink
Merge pull request #352 from humanmade/backport-351-to-v6-branch
Browse files Browse the repository at this point in the history
[Backport v6-branch] Fix S3 container uploads
  • Loading branch information
roborourke authored Oct 6, 2021
2 parents b7d6f7a + 897d519 commit e5c2684
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions inc/composer/class-docker-compose-generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -413,10 +413,12 @@ protected function get_service_s3() : array {
'retries' => 3,
],
'labels' => [
'traefik.port=9000',
'traefik.protocol=http',
'traefik.docker.network=proxy',
'traefik.api.port=9000',
'traefik.api.protocol=http',
"traefik.api.frontend.rule=HostRegexp:s3-{$this->hostname}",
'traefik.client.port=9000',
'traefik.client.protocol=http',
'traefik.client.frontend.passHostHeader=false',
"traefik.client.frontend.rule=HostRegexp:{$this->hostname},{subdomain:[a-z.-_]+}.{$this->hostname};PathPrefix:/uploads;AddPrefix:/s3-{$this->project_name}",
],
Expand Down

0 comments on commit e5c2684

Please sign in to comment.