mirror of
https://github.com/System-End/cdn.git
synced 2026-04-19 18:35:12 +00:00
inline?in the line?
This commit is contained in:
parent
0201595af3
commit
2ae7d0e07c
2 changed files with 6 additions and 1 deletions
|
|
@ -2,5 +2,8 @@
|
||||||
|
|
||||||
Rails.application.config.after_initialize do
|
Rails.application.config.after_initialize do
|
||||||
ActiveStorage::Current.url_options = Rails.application.routes.default_url_options
|
ActiveStorage::Current.url_options = Rails.application.routes.default_url_options
|
||||||
Rails.application.config.active_storage.content_types_allowed_inline << "text/html"
|
Rails.application.config.active_storage.content_types_to_serve_as_binary = []
|
||||||
|
Rails.application.config.active_storage.content_types_allowed_inline = Hash.new.tap do |h|
|
||||||
|
def h.include?(item) = true
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,8 @@ amazon:
|
||||||
force_path_style: true
|
force_path_style: true
|
||||||
request_checksum_calculation: when_required
|
request_checksum_calculation: when_required
|
||||||
response_checksum_validation: when_required
|
response_checksum_validation: when_required
|
||||||
|
upload:
|
||||||
|
content_disposition: "inline"
|
||||||
|
|
||||||
# Remember not to checkin your GCS keyfile to a repository
|
# Remember not to checkin your GCS keyfile to a repository
|
||||||
# google:
|
# google:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue