mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Revert unwanted changes
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
_APP_ENV=development
|
||||
_APP_LOCALE=en
|
||||
_APP_WORKER_PER_CORE=1
|
||||
_APP_WORKER_PER_CORE=6
|
||||
_APP_CONSOLE_WHITELIST_ROOT=disabled
|
||||
_APP_CONSOLE_WHITELIST_EMAILS=
|
||||
_APP_CONSOLE_WHITELIST_IPS=
|
||||
|
||||
@@ -55,7 +55,6 @@ App::get('/v1/health/version')
|
||||
->inject('response')
|
||||
->action(function (mixed $http, Response $response) {
|
||||
$stats = $http->stats();
|
||||
\var_dump(\gethostname() . ': ' . $stats['idle_worker_num'] . '/' . $stats['worker_num']);
|
||||
|
||||
if(($stats['idle_worker_num'] ?? 0) <= 1) {
|
||||
throw new Exception(Exception::GENERAL_SERVER_ERROR, 'Can not process more requests at the moment.');
|
||||
|
||||
@@ -10,7 +10,6 @@ App::get('/versions')
|
||||
->label('scope', 'public')
|
||||
->inject('response')
|
||||
->action(function (Response $response) {
|
||||
\sleep(60);
|
||||
$platforms = Config::getParam('platforms');
|
||||
|
||||
$versions = [
|
||||
|
||||
@@ -44,9 +44,6 @@ services:
|
||||
- appwrite
|
||||
|
||||
appwrite:
|
||||
deploy:
|
||||
mode: replicated
|
||||
replicas: 3
|
||||
<<: *x-logging
|
||||
image: appwrite-dev
|
||||
build:
|
||||
@@ -62,9 +59,6 @@ services:
|
||||
- "traefik.constraint-label-stack=appwrite"
|
||||
- "traefik.docker.network=appwrite"
|
||||
- "traefik.http.services.appwrite_api.loadbalancer.server.port=80"
|
||||
- "traefik.http.services.appwrite_api.loadbalancer.healthcheck.path=/v1/health/version"
|
||||
- "traefik.http.services.appwrite_api.loadbalancer.healthcheck.interval=3s"
|
||||
- "traefik.http.services.appwrite_api.loadbalancer.healthcheck.timeout=2s"
|
||||
#http
|
||||
- traefik.http.routers.appwrite_api_http.entrypoints=appwrite_web
|
||||
- traefik.http.routers.appwrite_api_http.rule=PathPrefix(`/`)
|
||||
|
||||
Reference in New Issue
Block a user