stop forcing https locally

This commit is contained in:
GotPPay
2018-08-02 14:31:03 +02:00
parent dcbb47425f
commit ce9f0799ed
3 changed files with 20 additions and 10 deletions

View File

@@ -23,16 +23,6 @@ if (file_exists($env_config)) {
require_once $env_config;
}
/**
* Stops redirect loop on login page
*/
define('FORCE_SSL_ADMIN', true);
// in some setups HTTP_X_FORWARDED_PROTO might contain
// a comma-separated list e.g. http,https
// so check for https existence
if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false)
$_SERVER['HTTPS']='on';
/**
* URLs
*/