diff --git a/Dockerfile b/Dockerfile index 8e6e2ed830..b73ae7869a 100755 --- a/Dockerfile +++ b/Dockerfile @@ -141,6 +141,7 @@ ENV _APP_SERVER=swoole \ _APP_FUNCTIONS_CPUS=1 \ _APP_FUNCTIONS_MEMORY=128 \ _APP_FUNCTIONS_MEMORY_SWAP=128 \ + _APP_EXECUTOR_SECRET=a-random-secret \ _APP_SETUP=self-hosted \ _APP_VERSION=$VERSION \ _APP_USAGE_STATS=enabled \ diff --git a/app/config/variables.php b/app/config/variables.php index bb505fd6be..d6dfe28639 100644 --- a/app/config/variables.php +++ b/app/config/variables.php @@ -453,6 +453,15 @@ return [ 'question' => '', 'filter' => '' ], + [ + 'name' => '_APP_EXECUTOR_SECRET', + 'description' => 'The secret key used by appwrite to communicate with the function executor. Make sure to change this!', + 'introduction' => '0.11.0', + 'default' => 'your-secret-key', + 'required' => false, + 'question' => '', + 'filter' => '' + ], [ 'name' => '_APP_FUNCTIONS_ENVS', 'description' => 'Deprectated with 0.8.0, use \'_APP_FUNCTIONS_RUNTIMES\' instead!', diff --git a/app/views/install/compose.phtml b/app/views/install/compose.phtml index 637f5b2a24..83838108fe 100644 --- a/app/views/install/compose.phtml +++ b/app/views/install/compose.phtml @@ -105,6 +105,7 @@ services: - _APP_FUNCTIONS_CPUS - _APP_FUNCTIONS_MEMORY - _APP_FUNCTIONS_MEMORY_SWAP + - _APP_EXECUTOR_SECRET - _APP_FUNCTIONS_RUNTIMES appwrite-realtime: @@ -311,6 +312,7 @@ services: - _APP_FUNCTIONS_CPUS - _APP_FUNCTIONS_MEMORY - _APP_FUNCTIONS_MEMORY_SWAP + - _APP_EXECUTOR_SECRET - _APP_FUNCTIONS_RUNTIMES - _APP_USAGE_STATS