diff --git a/.env.example b/.env.example index 7a5d1ae..6b87610 100644 --- a/.env.example +++ b/.env.example @@ -8,7 +8,7 @@ LOG_LEVEL=INFO DATABASE_URL_FILE=/run/secrets/database_url # Session store: postgres | redis (redis requires CACHE_URL_FILE) -SESSION_STORE=postgres +SESSION_STORE=redis CACHE_URL_FILE=/run/secrets/cache_url API_REPLICAS=2 @@ -16,3 +16,4 @@ IDEMPOTENCY_TTL_SECONDS=86400 API_CPUS=0.5 API_MEM=256M +LB_CPUS=0.5 diff --git a/compose.yaml b/compose.yaml index 4559034..0593acd 100644 --- a/compose.yaml +++ b/compose.yaml @@ -79,7 +79,7 @@ services: deploy: resources: limits: - cpus: "0.5" + cpus: ${LB_CPUS:-0.5} memory: 128M depends_on: api: diff --git a/deploy/nginx.conf b/deploy/nginx.conf index 7a3088d..6786942 100644 --- a/deploy/nginx.conf +++ b/deploy/nginx.conf @@ -1,4 +1,6 @@ -events {} +events { + worker_connections 4096; +} http { resolver 127.0.0.11 valid=2s ipv6=off;