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 diff --git a/apps/api/.env.example b/apps/api/.env.example index 08ff7d7f..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 -REDIS_RATE_LIMIT_URL=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.