ぼざクリタグ広場 https://hub.nizika.monster
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

89 lines
3.5 KiB

  1. require "active_support/core_ext/integer/time"
  2. Rails.application.configure do
  3. # Settings specified here will take precedence over those in config/application.rb.
  4. # Code is not reloaded between requests.
  5. config.enable_reloading = false
  6. # Eager load code on boot for better performance and memory savings (ignored by Rake tasks).
  7. config.eager_load = true
  8. # Full error reports are disabled.
  9. config.consider_all_requests_local = false
  10. # Cache assets for far-future expiry since they are all digest stamped.
  11. config.public_file_server.headers = { "cache-control" => "public, max-age=#{1.year.to_i}" }
  12. # Enable serving of images, stylesheets, and JavaScripts from an asset server.
  13. # config.asset_host = "http://assets.example.com"
  14. config.active_storage.service = :r2
  15. # Assume all access to the app is happening through a SSL-terminating reverse proxy.
  16. config.assume_ssl = true
  17. # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
  18. config.force_ssl = true
  19. # Skip http-to-https redirect for the default health check endpoint.
  20. # config.ssl_options = { redirect: { exclude: ->(request) { request.path == "/up" } } }
  21. # Log to STDOUT with the current request id as a default log tag.
  22. config.log_tags = [ :request_id ]
  23. config.logger = ActiveSupport::TaggedLogging.logger(STDOUT)
  24. # Change to "debug" to log everything (including potentially personally-identifiable information!)
  25. config.log_level = ENV.fetch("RAILS_LOG_LEVEL", "info")
  26. # Prevent health checks from clogging up the logs.
  27. config.silence_healthcheck_path = "/up"
  28. # Don't log any deprecations.
  29. config.active_support.report_deprecations = false
  30. # Replace the default in-process memory cache store with a durable alternative.
  31. # config.cache_store = :solid_cache_store
  32. # Replace the default in-process and non-durable queuing backend for Active Job.
  33. # config.active_job.queue_adapter = :solid_queue
  34. # config.solid_queue.connects_to = { database: { writing: :queue } }
  35. # Ignore bad email addresses and do not raise email delivery errors.
  36. # Set this to true and configure the email server for immediate delivery to raise delivery errors.
  37. # config.action_mailer.raise_delivery_errors = false
  38. # Set host to be used by links generated in mailer templates.
  39. config.action_mailer.default_url_options = { host: "example.com" }
  40. # Specify outgoing SMTP server. Remember to add smtp/* credentials via rails credentials:edit.
  41. # config.action_mailer.smtp_settings = {
  42. # user_name: Rails.application.credentials.dig(:smtp, :user_name),
  43. # password: Rails.application.credentials.dig(:smtp, :password),
  44. # address: "smtp.example.com",
  45. # port: 587,
  46. # authentication: :plain
  47. # }
  48. # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
  49. # the I18n.default_locale when a translation cannot be found).
  50. config.i18n.fallbacks = true
  51. # Do not dump schema after migrations.
  52. config.active_record.dump_schema_after_migration = false
  53. # Only use :id for inspections in production.
  54. config.active_record.attributes_for_inspect = [ :id ]
  55. # Enable DNS rebinding protection and other `Host` header attacks.
  56. # config.hosts = [
  57. # "example.com", # Allow requests from example.com
  58. # /.*\.example\.com/ # Allow requests from subdomains like `www.example.com`
  59. # ]
  60. #
  61. # Skip DNS rebinding protection for the default health check endpoint.
  62. # config.host_authorization = { exclude: ->(request) { request.path == "/up" } }
  63. end
  64. Rails.application.routes.default_url_options[:host] = 'hub.nizika.monster/api'