mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Add proxy and fix bugs
This commit is contained in:
@@ -66,13 +66,15 @@ class Executor
|
||||
array $variables = [],
|
||||
array $commands = []
|
||||
) {
|
||||
$runtimeId = "$projectId-$deploymentId";
|
||||
$route = "/runtimes";
|
||||
$headers = [
|
||||
'content-type' => 'application/json',
|
||||
'authorization' => 'Bearer ' . App::getEnv('_APP_EXECUTOR_SECRET', '')
|
||||
'authorization' => 'Bearer ' . App::getEnv('_APP_EXECUTOR_SECRET', ''),
|
||||
'x-opr-runtime-id' => $runtimeId
|
||||
];
|
||||
$params = [
|
||||
'runtimeId' => "$projectId-$deploymentId",
|
||||
'runtimeId' => $runtimeId,
|
||||
'source' => $source,
|
||||
'destination' => $destination,
|
||||
'image' => $image,
|
||||
@@ -125,7 +127,8 @@ class Executor
|
||||
$route = '/runtimes/' . $runtimeId . '/execution';
|
||||
$headers = [
|
||||
'content-type' => 'application/json',
|
||||
'authorization' => 'Bearer ' . App::getEnv('_APP_EXECUTOR_SECRET', '')
|
||||
'authorization' => 'Bearer ' . App::getEnv('_APP_EXECUTOR_SECRET', ''),
|
||||
'x-opr-runtime-id' => $runtimeId
|
||||
];
|
||||
$params = [
|
||||
'runtimeId' => $runtimeId,
|
||||
|
||||
Reference in New Issue
Block a user