update rails to v8.0.1

This commit is contained in:
Alex Turchyn
2024-12-20 17:01:27 +02:00
committed by Pete Matsyburka
parent ca429bc445
commit e9bd11cb2e
8 changed files with 166 additions and 163 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ Bundler.require(*Rails.groups)
module DocuSeal
class Application < Rails::Application
config.load_defaults 7.2
config.load_defaults 8.0
config.autoload_lib(ignore: %w[assets tasks puma])
+1 -1
View File
@@ -39,7 +39,7 @@ Rails.application.configure do
config.cache_store = :memory_store
config.public_file_server.headers = {
'Cache-Control' => "public, max-age=#{2.days.to_i}"
'cache-control' => "public, max-age=#{2.days.to_i}"
}
else
config.action_controller.perform_caching = false
+4 -6
View File
@@ -12,7 +12,7 @@ Rails.application.configure do
config.enable_reloading = false
config.public_file_server.headers = {
'Cache-Control' => 'public, s-maxage=31536000, max-age=15552000',
'cache-control' => 'public, s-maxage=31536000, max-age=15552000',
'Expires' => 1.year.from_now.to_fs(:rfc822)
}
@@ -25,7 +25,6 @@ Rails.application.configure do
# Full error reports are disabled and caching is turned on.
config.consider_all_requests_local = false
config.action_controller.perform_caching = true
config.active_record.sqlite3_production_warning = false
config.active_job.queue_adapter = :sidekiq
@@ -37,10 +36,6 @@ Rails.application.configure do
# Apache or NGINX already handles this.
config.public_file_server.enabled = true
# Specifies the header that your server uses for sending files.
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for Apache
# 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 =
if ENV['S3_ATTACHMENTS_BUCKET'].present?
@@ -61,6 +56,9 @@ Rails.application.configure do
# config.action_cable.url = "wss://example.com/cable"
# config.action_cable.allowed_request_origins = [ "http://example.com", /http:\/\/example.*/ ]
# Assume all access to the app is happening through a SSL-terminating reverse proxy.
config.assume_ssl = ENV['FORCE_SSL'].present? && ENV['FORCE_SSL'] != 'false'
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
config.force_ssl = ENV['FORCE_SSL'].present? && ENV['FORCE_SSL'] != 'false'
+1 -1
View File
@@ -21,7 +21,7 @@ Rails.application.configure do
# Configure public file server for tests with Cache-Control for performance.
config.public_file_server.enabled = true
config.public_file_server.headers = {
'Cache-Control' => "public, max-age=#{1.hour.to_i}"
'cache-control' => "public, max-age=#{1.hour.to_i}"
}
# Show full error reports and disable caching.
+1 -1
View File
@@ -45,7 +45,7 @@ ActiveStorage::LogSubscriber.detach_from(:active_storage) if Rails.env.productio
Rails.configuration.to_prepare do
ActiveStorage::DiskController.after_action do
response.set_header('Cache-Control', 'public, max-age=31536000') if action_name == 'show'
response.set_header('cache-control', 'public, max-age=31536000') if action_name == 'show'
end
ActiveStorage::Blobs::ProxyController.before_action do
@@ -1,4 +1,4 @@
# frozen_string_literal: true
Rails.application.config.filter_parameters += %i[password token otp_attempt passw secret token _key crypt salt
certificate otp ssn file]
certificate otp ssn file cvv cvc]