Add additional startup checks for imgproxy (#10681)

This commit is contained in:
Mac Siri 2020-10-06 16:18:52 -04:00 committed by GitHub
parent f83062a9dd
commit 95eaedc4a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,7 +3,7 @@ Imgproxy.configure do |config|
#
# Full URL to where your imgproxy lives.
#
config.endpoint = if Rails.env.production?
config.endpoint = if Rails.env.production? && ApplicationConfig["APP_DOMAIN"] && ApplicationConfig["APP_PROTOCOL"]
# Use /images with the same domain on Production as
# our default configuration
URL.url("images") # ie. https://forem.dev/images