1
0

production.rb 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. Huginn::Application.configure do
  2. # Settings specified here will take precedence over those in config/application.rb
  3. # Code is not reloaded between requests
  4. config.cache_classes = true
  5. # Full error reports are disabled and caching is turned on
  6. config.consider_all_requests_local = false
  7. config.action_controller.perform_caching = true
  8. # Disable Rails's static asset server (Apache or nginx will already do this)
  9. config.serve_static_assets = false
  10. # Compress JavaScripts and CSS
  11. config.assets.compress = true
  12. # Don't fallback to assets pipeline if a precompiled asset is missed
  13. config.assets.compile = false
  14. # Generate digests for assets URLs
  15. config.assets.digest = true
  16. # Defaults to nil and saved in location specified by config.assets.prefix
  17. # config.assets.manifest = YOUR_PATH
  18. # Specifies the header that your server uses for sending files
  19. # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
  20. # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
  21. # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
  22. config.force_ssl = true
  23. # See everything in the log (default is :info)
  24. # config.log_level = :debug
  25. # Prepend all log lines with the following tags
  26. config.log_tags = [ :uuid ] # :subdomain
  27. # Use a different logger for distributed setups
  28. # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
  29. # Use a different cache store in production
  30. # config.cache_store = :mem_cache_store
  31. # Enable serving of images, stylesheets, and JavaScripts from an asset server
  32. # config.action_controller.asset_host = "http://assets.example.com"
  33. # Precompile additional assets (application.js.coffee.erb, application.css, and all non-JS/CSS are already added)
  34. config.assets.precompile += %w( graphing.js )
  35. # Enable threaded mode
  36. # config.threadsafe!
  37. # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
  38. # the I18n.default_locale when a translation can not be found)
  39. config.i18n.fallbacks = true
  40. # Send deprecation notices to registered listeners
  41. config.active_support.deprecation = :notify
  42. # Log the query plan for queries taking more than this (works
  43. # with SQLite, MySQL, and PostgreSQL)
  44. # config.active_record.auto_explain_threshold_in_seconds = 0.5
  45. config.action_mailer.default_url_options = { :host => ENV['DOMAIN'] }
  46. config.action_mailer.asset_host = ENV['DOMAIN']
  47. config.action_mailer.perform_deliveries = true
  48. config.action_mailer.raise_delivery_errors = true
  49. config.action_mailer.delivery_method = :smtp
  50. config.action_mailer.smtp_settings = {
  51. address: ENV['SMTP_SERVER'] || 'smtp.gmail.com',
  52. port: ENV['SMTP_PORT'] || 587,
  53. domain: ENV['SMTP_DOMAIN'],
  54. authentication: ENV['SMTP_AUTHENTICATION'] || 'plain',
  55. enable_starttls_auto: ENV['SMTP_ENABLE_STARTTLS_AUTO'] == 'true' ? true : false,
  56. user_name: ENV['SMTP_USER_NAME'],
  57. password: ENV['SMTP_PASSWORD']
  58. }
  59. end