Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update rails version and switch to public:true from active_storage #3

Open
github-actions bot opened this issue Aug 27, 2024 · 1 comment
Open

Comments

@github-actions
Copy link

config.action_cable.mount_path = nil

# TODO: Update rails version and switch to public:true from active_storage

  # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX

  # Store uploaded files on the local file system (see config/storage.yml for options)
  config.active_storage.service = Rails.application.secrets.dig(:scaleway, :id).blank? ? :local : :scaleway

  # By default, files uploaded to Active Storage will be served from a private URL.
  # in production, you'll want to set this to :public so that files are served
  # unfortunately, this is not working with the current version of ActiveStorage
  # TODO: Update rails version and switch to public:true from active_storage
  config.active_storage.service_urls_expire_in = ENV.fetch("SERVICE_URLS_EXPIRE_IN") do
    if Rails.application.secrets.dig(:scaleway, :id).blank?
      "120000"
    else
      "1"
    end
  end.to_i.weeks

  # Mount Action Cable outside main process or domain
  # config.action_cable.mount_path = nil
@github-actions github-actions bot added the todo label Aug 27, 2024
Copy link
Author

Stale issue message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0 participants