/usr/share/obs/api/config/application.rb is in obs-api 2.7.4-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 | require File.expand_path('../boot', __FILE__)
require 'rails/all'
Bundler.require(*Rails.groups)
require_relative '../lib/engines/base.rb'
OBSEngine::load_engines
module OBSApi
  class Application < Rails::Application
    # Settings in config/environments/* take precedence over those specified here.
    # Application configuration should go into files in config/initializers
    # -- all .rb files in that directory are automatically loaded.
    # Custom directories with classes and modules you want to be autoloadable.
    # config.autoload_paths += %W(#{config.root}/extras)
    # Only load the plugins named here, in the order given (default is alphabetical).
    # :all can be used as a placeholder for all plugins not explicitly named.
    # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
    # Activate observers that should always be running.
    # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
    # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
    # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
    # config.time_zone = 'Central Time (US & Canada)'
    # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
    # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
    # config.i18n.default_locale = :de
    # Configure the default encoding used in templates for Ruby 1.9.
    config.encoding = "utf-8"
    # Configure sensitive parameters which will be filtered from the log file.
    config.filter_parameters += [:password]
    # Use SQL instead of Active Record's schema dumper when creating the database.
    # This is necessary if your schema can't be completely dumped by the schema dumper,
    # like if you have constraints or database-specific column types
    # config.active_record.schema_format = :sql
    # Enable the asset pipeline
    config.assets.enabled = true
    # Version of your assets, change this if you want to expire all your assets
    config.assets.version = '1.0'
    # Skip frameworks you're not going to use
    # config.frameworks -= [ :action_web_service, :active_resource ]
    # Add additional load paths for your own custom dirs
    # config.load_paths += %W( #{Rails.root}/extras )
    # Rails.root is not working directory when running under lighttpd, so it has
    # to be added to load path
    # config.load_paths << Rails.root unless config.load_paths.include? Rails.root
    # Force all environments to use the same logger level
    # (by default production uses :info, the others :debug)
    # config.log_level = :debug
    config.log_tags = [:uuid]
    # Use the database for sessions instead of the file system
    # (create the session table with 'rake create_sessions_table')
    # config.action_controller.session_store = :active_record_store
    # put the rubygem requirements here for a clean handling
    # rake gems:install (installs the needed gems)
    # rake gems:unpack (this unpacks the gems to vendor/gems)
    config.cache_store = :dalli_store, 'localhost:11211', {:namespace => 'obs-api', :compress => true }
    # will become default
    config.active_record.raise_in_transactional_callbacks = true
    # required since rails 4.2
    config.active_job.queue_adapter = :delayed_job
    # Activate observers that should always be running
    # config.active_record.observers = :cacher, :garbage_collector
    # Make Active Record use UTC-base instead of local time
    # config.active_record.default_timezone = :utc
    config.active_record.schema_format = :sql
    config.action_controller.perform_caching = true
    config.assets.js_compressor = :uglifier
    config.assets.precompile += %w( webui/application/cm2/index.js )
    config.assets.precompile +=
      %w( dataTables/back_disabled.png
          dataTables/back_enabled_hover.png
          dataTables/back_enabled.png
          dataTables/forward_disabled.png
          dataTables/forward_enabled_hover.png
          dataTables/forward_enabled.png
          dataTables/sort_asc_disabled.png
          dataTables/sort_asc.png
          dataTables/sort_both.png
          dataTables/sort_desc_disabled.png
          dataTables/sort_desc.png )
    config.action_controller.action_on_unpermitted_parameters = :raise
    config.action_dispatch.rescue_responses.merge!('ActiveXML::Transport::UnauthorizedError' => 401)
    config.action_dispatch.rescue_responses.merge!('ActiveXML::Transport::ConnectionError' => 503)
    config.action_dispatch.rescue_responses.merge!('ActiveXML::Transport::Error' => 500)
    config.action_dispatch.rescue_responses.merge!('Timeout::Error' => 408)
    config.action_dispatch.rescue_responses.merge!('ActionController::InvalidAuthenticityToken' => 403)
    # avoid a warning
    I18n.enforce_available_locales = true
    # we're not threadsafe
    config.allow_concurrency = false
    # we don't want factory_girl to interfer with the legacy test suite
    # based on minitest
    config.generators do |g|
      g.factory_girl false
      g.test_framework :rspec
    end
    config.after_initialize do
      # See Rails::Configuration for more options
    end unless Rails.env.test?
  end
end
 |