From 0221872a70989fd79869d0d71b21184e5301d02f Mon Sep 17 00:00:00 2001 From: Quan Ming <116425066+wahpiangle@users.noreply.github.com> Date: Sat, 10 Aug 2024 00:40:11 +0800 Subject: [PATCH 1/4] Update redis urls in example .env --- apps/api/.env.example | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/api/.env.example b/apps/api/.env.example index 08ff7d7f..c62bac54 100644 --- a/apps/api/.env.example +++ b/apps/api/.env.example @@ -2,8 +2,8 @@ NUM_WORKERS_PER_QUEUE=8 PORT=3002 HOST=0.0.0.0 -REDIS_URL=redis://localhost:6379 -REDIS_RATE_LIMIT_URL=redis://localhost:6379 +REDIS_URL=redis://redis:6379 +REDIS_RATE_LIMIT_URL=redis://redis:6379 PLAYWRIGHT_MICROSERVICE_URL=http://playwright-service:3000/html ## To turn on DB authentication, you need to set up supabase. From a96ad4b0e208f2c9faa3218cdfcb85ce526a23bf Mon Sep 17 00:00:00 2001 From: Quan Ming <116425066+wahpiangle@users.noreply.github.com> Date: Sat, 10 Aug 2024 12:33:26 +0800 Subject: [PATCH 2/4] Update redis url to use comment --- apps/api/.env.example | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/api/.env.example b/apps/api/.env.example index c62bac54..9f96e8a6 100644 --- a/apps/api/.env.example +++ b/apps/api/.env.example @@ -2,8 +2,8 @@ NUM_WORKERS_PER_QUEUE=8 PORT=3002 HOST=0.0.0.0 -REDIS_URL=redis://redis:6379 -REDIS_RATE_LIMIT_URL=redis://redis:6379 +REDIS_URL=redis://localhost:6379 #for self-hosting using docker, use redis://redis:6379. For running locally, use redis://localhost:6379 +REDIS_RATE_LIMIT_URL=redis://localhost:6379 #for self-hosting using docker, use redis://redis:6379. For running locally, use redis://localhost:6379 PLAYWRIGHT_MICROSERVICE_URL=http://playwright-service:3000/html ## To turn on DB authentication, you need to set up supabase. From fe179d0cb14b7accd6b7da87451890faab51720a Mon Sep 17 00:00:00 2001 From: Quan Ming <116425066+wahpiangle@users.noreply.github.com> Date: Sat, 10 Aug 2024 12:39:22 +0800 Subject: [PATCH 3/4] Update redis troubleshooting in self host guide --- SELF_HOST.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SELF_HOST.md b/SELF_HOST.md index 43bc3757..75066e48 100644 --- a/SELF_HOST.md +++ b/SELF_HOST.md @@ -160,7 +160,7 @@ Errors related to connecting to Redis, such as timeouts or "Connection refused". **Solution:** - Ensure that the Redis service is up and running in your Docker environment. -- Verify that the REDIS_URL and REDIS_RATE_LIMIT_URL in your .env file point to the correct Redis instance. +- Verify that the REDIS_URL and REDIS_RATE_LIMIT_URL in your .env file point to the correct Redis instance, ensure that it points to the same URL in the `docker-compose.yaml` file (`redis://redis:6379`) - Check network settings and firewall rules that may block the connection to the Redis port. ### API endpoint does not respond From 36e4b2cf4945b3e1567d2f5aae18ab18a071bd9c Mon Sep 17 00:00:00 2001 From: Rafael Miller <150964962+rafaelsideguide@users.noreply.github.com> Date: Mon, 12 Aug 2024 10:37:00 -0300 Subject: [PATCH 4/4] Update .env.example --- apps/api/.env.example | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/api/.env.example b/apps/api/.env.example index 9f96e8a6..87ecde77 100644 --- a/apps/api/.env.example +++ b/apps/api/.env.example @@ -2,8 +2,8 @@ NUM_WORKERS_PER_QUEUE=8 PORT=3002 HOST=0.0.0.0 -REDIS_URL=redis://localhost:6379 #for self-hosting using docker, use redis://redis:6379. For running locally, use redis://localhost:6379 -REDIS_RATE_LIMIT_URL=redis://localhost:6379 #for self-hosting using docker, use redis://redis:6379. For running locally, use redis://localhost:6379 +REDIS_URL=redis://redis:6379 #for self-hosting using docker, use redis://redis:6379. For running locally, use redis://localhost:6379 +REDIS_RATE_LIMIT_URL=redis://redis:6379 #for self-hosting using docker, use redis://redis:6379. For running locally, use redis://localhost:6379 PLAYWRIGHT_MICROSERVICE_URL=http://playwright-service:3000/html ## To turn on DB authentication, you need to set up supabase.