From 897d51916929288fa320ee2ae8a893bb2559b571 Mon Sep 17 00:00:00 2001 From: Robert O'Rourke Date: Wed, 6 Oct 2021 14:34:56 +0000 Subject: [PATCH] Fix S3 container uploads --- inc/composer/class-docker-compose-generator.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/inc/composer/class-docker-compose-generator.php b/inc/composer/class-docker-compose-generator.php index 0e6f561d..3b69f3e3 100644 --- a/inc/composer/class-docker-compose-generator.php +++ b/inc/composer/class-docker-compose-generator.php @@ -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}", ],