	Rails.application.config.active_storage.service_urls_expire_in = 1.hour

# Configure URL options for Active Storage
Rails.application.config.to_prepare do
  ActiveStorage::BaseController.include(ActiveStorage::SetCurrent)
  ActiveStorage::Current.url_options = {
    host: 'localhost',
    port: 3000,
    protocol: 'http'
  }
end
