Skip to content

Commit

Permalink
Merge pull request #338 from humanmade/backport-336-to-v7-branch
Browse files Browse the repository at this point in the history
[Backport v7-branch] Fix `/uploads` path for S3 images
  • Loading branch information
roborourke authored Sep 17, 2021
2 parents 560d39f + a673b4e commit a457a21
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 @@ -417,7 +417,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 a457a21

Please sign in to comment.