Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions public/sites/default/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down