Skip to content

Instantly share code, notes, and snippets.

@katzueno
Forked from hissy/concrete.php
Created February 12, 2016 03:52
Show Gist options
  • Save katzueno/80db891371b4f99d4c55 to your computer and use it in GitHub Desktop.
Save katzueno/80db891371b4f99d4c55 to your computer and use it in GitHub Desktop.
#concrete5 #5.7 How to work concrete5 behind a load balancer or a reverse proxy
<?php
/**
* Always trust incoming request.
*
* application/config/concrete.php
*
* For more detail, see: http://symfony.com/doc/current/cookbook/request/load_balancer_reverse_proxy.html
*/
// Get remote address
$remoteIp = $_SERVER['REMOTE_ADDR'];
return [
'security' => [
'trusted_proxies' => [
'ips' => [$remoteIp]
],
],
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment