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;