1
0
Fork 0
mirror of synced 2024-06-03 11:24:48 +12:00

Updated scheme

This commit is contained in:
eldadfux 2019-11-21 21:03:02 +02:00
parent ec89ff0ca8
commit a7d004c355

View file

@ -43,7 +43,8 @@ $collections = include __DIR__.'/../app/config/collections.php'; // OAuth provid
$redisHost = $request->getServer('_APP_REDIS_HOST', '');
$redisPort = $request->getServer('_APP_REDIS_PORT', '');
$utopia = new App('Asia/Tel_Aviv', $env);
$port = (string) parse_url($request->getServer('HTTP_HOST', ''), PHP_URL_PORT);
$scheme = $request->getServer('REQUEST_SCHEME', '');
$port = (string) parse_url($scheme.'://'.$request->getServer('HTTP_HOST', ''), PHP_URL_PORT);
Resque::setBackend($redisHost.':'.$redisPort);
@ -53,7 +54,7 @@ define('COOKIE_DOMAIN',
$request->getServer('HTTP_HOST', null) === 'localhost:'.$port
)
? null
: '.'.parse_url($request->getServer('HTTP_HOST', ''), PHP_URL_HOST));
: '.'.parse_url($scheme.'://'.$request->getServer('HTTP_HOST', ''), PHP_URL_HOST));
define('COOKIE_SAMESITE', null); // Response::COOKIE_SAMESITE_NONE
/*