Allow disabling S3 explicitly, disable in Docker Compose

For example when there is a .env.development for running the app on a
host machine directly, but as a developer you also want to run it with
Docker Compose from time to time.
This commit is contained in:
2024-02-08 12:48:30 +01:00
parent c9052b35f6
commit a7cbd8ce36
5 changed files with 8 additions and 3 deletions

View File

@@ -15,6 +15,9 @@ class Setting < RailsSettings::Base
field :redis_url, type: :string,
default: ENV["REDIS_URL"] || "redis://localhost:6379/0"
field :s3_enabled, type: :boolean,
default: ENV["S3_ENABLED"] && ENV["S3_ENABLED"].to_s != "false"
#
# Registrations
#