Make Redis URL configurable

This commit is contained in:
Râu Cao
2023-03-28 12:21:54 +02:00
parent 42b9b27561
commit 6b7a80e23a
3 changed files with 14 additions and 0 deletions

View File

@@ -2,6 +2,13 @@
class Setting < RailsSettings::Base
cache_prefix { "v1" }
#
# Internal services
#
field :redis_url, type: :string, readonly: true,
default: ENV["REDIS_URL"] || "redis://localhost:6379/0"
#
# Registrations
#