Skip to content

Commit

Permalink
Merge pull request #337 from humanmade/backport-336-to-v6-branch
Browse files Browse the repository at this point in the history
[Backport v6-branch] Fix `/uploads` path for S3 images
  • Loading branch information
roborourke authored Sep 17, 2021
2 parents a1486f1 + 2503101 commit b7d6f7a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion inc/composer/class-docker-compose-generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,9 @@ protected function get_service_s3() : array {
'traefik.port=9000',
'traefik.protocol=http',
'traefik.docker.network=proxy',
"traefik.frontend.rule=HostRegexp:s3-{$this->hostname}",
"traefik.api.frontend.rule=HostRegexp:s3-{$this->hostname}",
'traefik.client.frontend.passHostHeader=false',
"traefik.client.frontend.rule=HostRegexp:{$this->hostname},{subdomain:[a-z.-_]+}.{$this->hostname};PathPrefix:/uploads;AddPrefix:/s3-{$this->project_name}",
],
],
's3-sync-to-host' => [
Expand Down

0 comments on commit b7d6f7a

Please sign in to comment.