mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-26 04:23:43 +01:00
Fix Ruby lint issues
This commit is contained in:
parent
4113fbf6e8
commit
33dd5d8179
1 changed files with 2 additions and 2 deletions
|
@ -33,13 +33,13 @@ def sso_host
|
||||||
end
|
end
|
||||||
|
|
||||||
unless Rails.env.development?
|
unless Rails.env.development?
|
||||||
assets_host = Rails.configuration.action_controller.asset_host || "https://#{ENV['WEB_DOMAIN'] || ENV['LOCAL_DOMAIN']}"
|
assets_host = Rails.configuration.action_controller.asset_host || "https://#{ENV['WEB_DOMAIN'] || Rails.configuration.x.local_domain}"
|
||||||
data_hosts = [assets_host]
|
data_hosts = [assets_host]
|
||||||
|
|
||||||
if ENV['S3_ENABLED'] == 'true' || ENV['AZURE_ENABLED'] == 'true'
|
if ENV['S3_ENABLED'] == 'true' || ENV['AZURE_ENABLED'] == 'true'
|
||||||
attachments_host = host_to_url(ENV['S3_ALIAS_HOST'] || ENV['S3_CLOUDFRONT_HOST'] || ENV['AZURE_ALIAS_HOST'] || ENV['S3_HOSTNAME'] || "s3-#{ENV['S3_REGION'] || 'us-east-1'}.amazonaws.com")
|
attachments_host = host_to_url(ENV['S3_ALIAS_HOST'] || ENV['S3_CLOUDFRONT_HOST'] || ENV['AZURE_ALIAS_HOST'] || ENV['S3_HOSTNAME'] || "s3-#{ENV['S3_REGION'] || 'us-east-1'}.amazonaws.com")
|
||||||
elsif ENV['SWIFT_ENABLED'] == 'true'
|
elsif ENV['SWIFT_ENABLED'] == 'true'
|
||||||
attachments_host = ENV['SWIFT_OBJECT_URL']
|
attachments_host = ENV.fetch('SWIFT_OBJECT_URL')
|
||||||
attachments_host = "https://#{Addressable::URI.parse(attachments_host).host}"
|
attachments_host = "https://#{Addressable::URI.parse(attachments_host).host}"
|
||||||
else
|
else
|
||||||
attachments_host = nil
|
attachments_host = nil
|
||||||
|
|
Loading…
Reference in a new issue