Skip to content

Commit aeb4475

Browse files
committed
added additional environment variables
1 parent 1cc842e commit aeb4475

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

config/application.rb

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,21 @@ class Application < Rails::Application
337337
config.assets.quiet = ENV["ASSETS_QUIET"]
338338
config.file_watcher = ENV["FILE_WATCHER"] != "" ? ENV["FILE_WATCHER"].constantize : nil
339339
config.routes.default_url_options[:host] = JSON.parse(ENV["DMPROADMAP_HOSTS"]).first
340+
341+
config.action_view.cache_template_loading = ENV["ACTION_VIEW_CACHE_TEMPLATE_LOADING"]
342+
config.public_file_server.enabled = ENV["PUBLIC_FILE_SERVER_ENABLED"]
343+
config.public_file_server.headers = {
344+
"Cache-Control" => [
345+
"public",
346+
"max-age=#{ENV["PUBLIC_FILE_SERVER_CACHE_SECONDS"]}",
347+
ENV["PUBLIC_FILE_SERVER_CACHE_EXTRA"].presence
348+
].compact.join(", ")
349+
}
350+
config.action_dispatch.show_exceptions = ENV["ACTION_DISPACTH_SHOW_EXCEPTIONS"]
351+
config.action_controller.allow_forgery_protection = ENV["ACTION_CONTROLLER_ALLOW_FORGERY_PROTECTION"]
352+
config.action_mailer.perform_caching = ENV["ACTION_MAILER_PERFORM_CACHING"]
353+
config.active_support.deprecation = ENV["ACTIVE_SUPPORT_DEPRECATION"].to_sym
354+
config.i18n.enforce_available_locales = ENV["I18N_ENFORCE_AVAILABLE_LOCALES"]
340355
end
341356

342357
end

0 commit comments

Comments
 (0)