Skip to content

Commit

Permalink
Fix too_many_redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
Luc45 committed Apr 10, 2024
1 parent efa5b9c commit dca7af6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Binary file modified qit
Binary file not shown.
8 changes: 6 additions & 2 deletions src/src/Environment/Environments/E2E/E2EEnvironment.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,16 @@ protected function post_up(): void {
if ( getenv( 'QIT_EXPOSE_ENVIRONMENT_TO' ) === 'DOCKER' ) {
// Inside docker, the port is always 80 (that's what Nginx is listening to).
$this->env_info->nginx_port = '80';

// Site URL without explicit port.
$this->env_info->site_url = sprintf( 'http://%s', $this->env_info->domain );
} else {
// Host port.
$this->env_info->nginx_port = (string) $this->get_nginx_port();
}

$this->env_info->site_url = sprintf( 'http://%s:%s', $this->env_info->domain, $this->env_info->nginx_port );
// Site URL with explicit port.
$this->env_info->site_url = sprintf( 'http://%s:%s', $this->env_info->domain, $this->env_info->nginx_port );
}

$this->environment_monitor->environment_added_or_updated( $this->env_info );

Expand Down

0 comments on commit dca7af6

Please sign in to comment.