]> git.p6c8.net - jirafeau.git/blobdiff - lib/config.original.php
manage visitor IP behind reverse proxies, refs #36
[jirafeau.git] / lib / config.original.php
index 755b762aea1912f2d97507c3a74016f7a764f0f2..d7c52e28c04bff96dcaef543551f37f5b540eb26 100644 (file)
@@ -89,6 +89,13 @@ $cfg['availabilities'] = array ('minute' => true,
  * 0 mean unlimited upload size.
  */
 $cfg['maximal_upload_size'] = 0;
+/* If your Jirafeau is behind some reverse proxies, you can set there IPs
+ * so Jirafeau get visitor's IP from HTTP_X_FORWARDED_FOR instead of
+ * REMOTE_ADDR.
+ * for example:
+ * $cfg['proxy_ip'] = array('12.34.56.78');
+ */
+$cfg['proxy_ip'] = array();
 /* Installation is done ? */
 $cfg['installation_done'] = false;
 

patrick-canterino.de