File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
342357end
You can’t perform that action at this time.
0 commit comments