WP Activity Log plugin nginx ERR_TOO_MANY_REDIRECTS code example
Example: wp-admin too many times redirect wordpress
if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false)
$_SERVER['HTTPS']='on';
if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false)
$_SERVER['HTTPS']='on';