Add additional startup checks for imgproxy (#10681)
This commit is contained in:
parent
f83062a9dd
commit
95eaedc4a2
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue