diff --git a/config/initializers/cf_access_authenticatable.rb b/config/initializers/cf_access_authenticatable.rb index 8bdba7b1..3eae84c6 100644 --- a/config/initializers/cf_access_authenticatable.rb +++ b/config/initializers/cf_access_authenticatable.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +# typed: true ## This class extends devise to validate the JWT provided by cloudflare and ensure the email addresses match @@ -37,6 +38,7 @@ def authenticate! unless resource Rails.logger.info("User #{email} not found") redirect!(cf_teams_url) + return end remember_me(resource) diff --git a/config/redis/redis.conf b/config/redis/redis.conf index 7404dc3c..c00681b2 100644 --- a/config/redis/redis.conf +++ b/config/redis/redis.conf @@ -1,5 +1,5 @@ maxmemory 1gb -maxmemory-policy allkeys-lfu +maxmemory-policy noeviction maxmemory-samples 5 lfu-log-factor 10 lfu-decay-time 1 diff --git a/docker-compose.yml b/docker-compose.yml index c8651c67..e7bb7b1b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -82,6 +82,8 @@ services: image: aldwin7894/project-cyan:prod entrypoint: /usr/src/app/entrypoint-sidekiq.sh command: "bin/sidekiq" + healthcheck: + test: ["NONE"] restart: always depends_on: - db