3843cab643
* update Gemfile to rails 5 and ruby 2.3.0 * fiddle with javascripts and add sprockets manifest file * update config directory for rails 5 * fix some errors with controllers/serializers * fix travis and rspec * new serializers renamed to serializers * module Api::V1 * reusable embedding code * add index/collections/paging. overriding most of snorlax now |:) * raml api documentation + rspec tests to verify schemas/examples * add sorting by ?sort and searching by ?q. Add pagination Link headers * api v1 => v2 * fill out synapse api * alphabetize map policy * fix page thing * fill out maps api * formParameters => properties, and fiddle with map api * more raml 1.0 stuff i'm learning about * deprecate v1 api * rails 5 uses ApplicationRecord class for app-wide model config * Update topic spec for api v2 * workaround for user_preference.rb issue * get ready for token api docs. also TODO is mapping api docs * spec out mapping api * map/mapping/synapse spec, plus other bugs * awesome, token specs/apis are done * add sanity checks to the api tests * more cleanup * devise fix * fix starred map error
56 lines
1.8 KiB
Ruby
56 lines
1.8 KiB
Ruby
Rails.application.configure do
|
|
# Settings specified here will take precedence over those in config/application.rb
|
|
|
|
config.log_level = :warn
|
|
config.eager_load = true
|
|
|
|
# Code is not reloaded between requests
|
|
config.cache_classes = true
|
|
|
|
# Full error reports are disabled and caching is turned on
|
|
config.consider_all_requests_local = false
|
|
config.action_controller.perform_caching = true
|
|
|
|
# Disable Rails's static asset server (Apache or nginx will already do this)
|
|
config.public_file_server.enabled = false
|
|
|
|
# Don't fallback to assets pipeline if a precompiled asset is missed
|
|
config.assets.compile = false
|
|
|
|
config.assets.js_compressor = :uglifier
|
|
|
|
# S3 file storage
|
|
config.paperclip_defaults = {
|
|
storage: :s3,
|
|
s3_credentials: {
|
|
bucket: ENV['S3_BUCKET_NAME'],
|
|
access_key_id: ENV['AWS_ACCESS_KEY_ID'],
|
|
secret_access_key: ENV['AWS_SECRET_ACCESS_KEY']
|
|
},
|
|
s3_protocol: 'https'
|
|
}
|
|
|
|
config.action_mailer.delivery_method = :smtp
|
|
config.action_mailer.smtp_settings = {
|
|
address: ENV['SMTP_SERVER'],
|
|
port: ENV['SMTP_PORT'],
|
|
user_name: ENV['SMTP_USERNAME'],
|
|
password: ENV['SMTP_PASSWORD'],
|
|
authentication: 'plain',
|
|
enable_starttls_auto: true,
|
|
openssl_verify_mode: 'none'
|
|
}
|
|
config.action_mailer.default_url_options = { host: ENV['MAILER_DEFAULT_URL'] }
|
|
# Don't care if the mailer can't send
|
|
config.action_mailer.raise_delivery_errors = true
|
|
|
|
# Generate digests for assets URLs
|
|
config.assets.digest = true
|
|
|
|
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
|
# the I18n.default_locale when a translation can not be found)
|
|
config.i18n.fallbacks = true
|
|
|
|
# Send deprecation notices to registered listeners
|
|
config.active_support.deprecation = :notify
|
|
end
|