Add separate config for RS Redis

This commit is contained in:
Râu Cao
2023-07-14 15:27:30 +02:00
parent d9b39b36fb
commit 4d88a40109
6 changed files with 15 additions and 3 deletions

View File

@@ -12,7 +12,7 @@ class Setting < RailsSettings::Base
# Internal services
#
field :redis_url, type: :string, readonly: true,
field :redis_url, type: :string,
default: ENV["REDIS_URL"] || "redis://localhost:6379/0"
#
@@ -131,4 +131,7 @@ class Setting < RailsSettings::Base
field :rs_storage_url, type: :string,
default: ENV["RS_STORAGE_URL"].presence
field :rs_redis_url, type: :string,
default: ENV["RS_REDIS_URL"] || "redis://localhost:6379/1"
end