mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Updated scheme
This commit is contained in:
+3
-2
@@ -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
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user