Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
acquia_purge
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
acquia_purge
Commits
959b20da
Commit
959b20da
authored
1 year ago
by
Balu Ertl
Committed by
Jakob P
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3404644
: Read from reverse_proxy_addresses not reverse_proxies
parent
ac0d3cbe
Branches
2497145-front-page
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!7
Issue #3404644: Read from reverse_proxy_addresses not reverse_proxies
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/AcquiaCloud/PlatformInfo.php
+8
-3
8 additions, 3 deletions
src/AcquiaCloud/PlatformInfo.php
with
8 additions
and
3 deletions
src/AcquiaCloud/PlatformInfo.php
+
8
−
3
View file @
959b20da
...
...
@@ -98,11 +98,16 @@ class PlatformInfo implements PlatformInfoInterface {
*/
public
function
__construct
(
string
$site_path
,
Settings
$settings
,
StateInterface
$state
)
{
// Generate the Drupal sitepath from service.
// Generate the Drupal site
path from service.
$this
->
sitePath
=
$site_path
;
// Take the IP addresses from the 'reverse_proxies' setting.
if
(
is_array
(
$reverse_proxies
=
$settings
->
get
(
'reverse_proxies'
)))
{
// Take the IP addresses from the 'reverse_proxy_addresses' setting.
$reverse_proxies
=
$settings
->
get
(
'reverse_proxy_addresses'
);
if
(
$reverse_proxies
===
NULL
)
{
// Fallback to legacy setting.
$reverse_proxies
=
$settings
->
get
(
'reverse_proxies'
);
}
if
(
is_array
(
$reverse_proxies
))
{
foreach
(
$reverse_proxies
as
$reverse_proxy
)
{
if
(
$reverse_proxy
&&
strpos
(
$reverse_proxy
,
'.'
))
{
$this
->
balancerAddresses
[]
=
$reverse_proxy
;
...
...
This diff is collapsed.
Click to expand it.
Jakob P
@japerry
mentioned in commit
461acccd
·
1 year ago
mentioned in commit
461acccd
mentioned in commit 461acccd527cdfc21d41d54ffea14d63be2839c1
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment