Skip to content

Commit

Permalink
Merge pull request #770 from humanmade/backport-692-to-v21-branch
Browse files Browse the repository at this point in the history
Backport 692 to v21 branch
  • Loading branch information
mikelittle authored Dec 18, 2024
2 parents cae443c + 30fb736 commit f91fc12
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions inc/composer/class-docker-compose-generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ protected function get_service_nginx() : array {
'traefik.port=8080',
'traefik.protocol=https',
'traefik.docker.network=proxy',
"traefik.frontend.rule=HostRegexp:{$this->hostname},{subdomain:[a-z.-_]+}.{$this->hostname}{$domains}",
"traefik.frontend.rule=HostRegexp:{$this->hostname},{subdomain:[A-Za-z0-9.-]+}.{$this->hostname}{$domains}",
"traefik.domain={$this->hostname},*.{$this->hostname}{$domains}",
],
'environment' => [
Expand Down Expand Up @@ -642,7 +642,7 @@ protected function get_service_s3() : array {
'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},s3-{$this->hostname},localhost,s3-{$this->project_name}.localhost;PathPrefix:/uploads;AddPrefix:/{$this->bucket_name}",
"traefik.client.frontend.rule=HostRegexp:{$this->hostname},{subdomain:[A-Za-z0-9.-]+}.{$this->hostname},s3-{$this->hostname},localhost,s3-{$this->project_name}.localhost;PathPrefix:/uploads;AddPrefix:/{$this->bucket_name}",
"traefik.domain=s3-{$this->hostname},s3-console-{$this->hostname}",
],
],
Expand Down Expand Up @@ -687,7 +687,7 @@ protected function get_service_tachyon() : array {
'traefik.port=8080',
'traefik.protocol=http',
'traefik.docker.network=proxy',
"traefik.frontend.rule=HostRegexp:{$this->hostname},{subdomain:[a-z.-_]+}.{$this->hostname};PathPrefix:/tachyon;ReplacePathRegex:^/tachyon/(.*) /uploads/$$1",
"traefik.frontend.rule=HostRegexp:{$this->hostname},{subdomain:[A-Za-z0-9.-]+}.{$this->hostname};PathPrefix:/tachyon;ReplacePathRegex:^/tachyon/(.*) /uploads/$$1",
],
'environment' => [
'AWS_REGION' => 'us-east-1',
Expand Down

0 comments on commit f91fc12

Please sign in to comment.