mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-10-31 02:57:57 +00:00 
			
		
		
		
	Configure redis
This commit is contained in:
		| @@ -1,13 +1,11 @@ | ||||
| require "redis" | ||||
|  | ||||
| #for reports | ||||
| config = YAML::load_file(File.join(Rails.root, 'config', 'reports_redis.yml'))[Rails.env] | ||||
| redis = Redis.new(host: config["host"], port: config["port"]) | ||||
| namespace = config["namespace"] | ||||
| Nightfury.redis = Redis::Namespace.new(namespace << "reports", redis: redis) | ||||
| redis = Redis.new(url: ENV['REDIS_URL']) | ||||
| Nightfury.redis = Redis::Namespace.new("reports", redis: redis) | ||||
|  | ||||
| =begin | ||||
| Alfred - Used currently for Round Robin. Add here as you use it for more features | ||||
| =end | ||||
| $alfred = Redis::Namespace.new(namespace << "alfred", :redis => redis, :warning => true) | ||||
| $alfred = Redis::Namespace.new("alfred", :redis => redis, :warning => true) | ||||
|  | ||||
|   | ||||
| @@ -35,3 +35,5 @@ CHARGEBEE_WEBHOOK_PASSWORD: '' | ||||
|  | ||||
| #sentry | ||||
| SENTRY_DSN: '' | ||||
|  | ||||
| REDIS_URL: '' | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 subintp
					subintp