From eb072a3108b7d807b34e158a5dad6ca9b4a6944c Mon Sep 17 00:00:00 2001 From: Santeri Hurnanen Date: Tue, 19 Aug 2025 11:21:56 +0300 Subject: [PATCH] UHF-10321 --- public/sites/default/settings.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/sites/default/settings.php b/public/sites/default/settings.php index c815cb11..11654196 100644 --- a/public/sites/default/settings.php +++ b/public/sites/default/settings.php @@ -117,6 +117,9 @@ function drupal_get_env(string|array $variables) : mixed { $reverse_proxy_address = explode(',', $reverse_proxy_address); if (isset($_SERVER['REMOTE_ADDR'])) { + // The application sits behind multiple proxies in the OpenShift + // environment. The nginx configuration uses ngx_http_realip_module to + // set the correct headers for Drupal. $reverse_proxy_address[] = $_SERVER['REMOTE_ADDR']; } $settings['reverse_proxy'] = TRUE;